Fixed Bug similar to Bug#3757. UMat all dims zero after release.
This commit is contained in:
parent
28833421ae
commit
a11c02497f
@ -3284,7 +3284,8 @@ inline void UMat::release()
|
|||||||
{
|
{
|
||||||
if( u && CV_XADD(&(u->urefcount), -1) == 1 )
|
if( u && CV_XADD(&(u->urefcount), -1) == 1 )
|
||||||
deallocate();
|
deallocate();
|
||||||
size.p[0] = 0;
|
for(int i = 0; i < dims; i++)
|
||||||
|
size.p[i] = 0;
|
||||||
u = 0;
|
u = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user