Commit b21b8ff9 authored by Roman Donchenko's avatar Roman Donchenko Committed by OpenCV Buildbot

Merge pull request #2891 from nisargthakkar:dims_zero_on_release

parents fb8fa3fd 98421e59
......@@ -366,7 +366,8 @@ inline void Mat::release()
if( refcount && CV_XADD(refcount, -1) == 1 )
deallocate();
data = datastart = dataend = datalimit = 0;
size.p[0] = 0;
for(int i = 0; i < dims; i++)
size.p[i] = 0;
refcount = 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment