Commit 1c9668b3 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #3584 from nisargthakkar:UMatDimsZeroAfterRelease

parents bd6ad797 a11c0249
......@@ -3284,7 +3284,8 @@ inline void UMat::release()
{
if( u && CV_XADD(&(u->urefcount), -1) == 1 )
deallocate();
size.p[0] = 0;
for(int i = 0; i < dims; i++)
size.p[i] = 0;
u = 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