mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 22:00:25 +08:00
Fix for Bug#3757: All dimension values are 0 after release is called
This commit is contained in:
parent
5042ab1f32
commit
98421e5970
@ -366,7 +366,8 @@ inline void Mat::release()
|
|||||||
if( refcount && CV_XADD(refcount, -1) == 1 )
|
if( refcount && CV_XADD(refcount, -1) == 1 )
|
||||||
deallocate();
|
deallocate();
|
||||||
data = datastart = dataend = datalimit = 0;
|
data = datastart = dataend = datalimit = 0;
|
||||||
size.p[0] = 0;
|
for(int i = 0; i < dims; i++)
|
||||||
|
size.p[i] = 0;
|
||||||
refcount = 0;
|
refcount = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user