mirror of
https://github.com/opencv/opencv.git
synced 2025-07-31 18:07:08 +08:00
core: drop type/dims/rows/cols information in Mat::release()
This commit is contained in:
parent
979b0ae9ce
commit
e878b60dbc
@ -368,6 +368,16 @@ inline void Mat::release()
|
|||||||
data = datastart = dataend = datalimit = 0;
|
data = datastart = dataend = datalimit = 0;
|
||||||
for(int i = 0; i < dims; i++)
|
for(int i = 0; i < dims; i++)
|
||||||
size.p[i] = 0;
|
size.p[i] = 0;
|
||||||
|
#ifdef _DEBUG
|
||||||
|
flags = MAGIC_VAL;
|
||||||
|
dims = rows = cols = 0;
|
||||||
|
if (step.p != step.buf)
|
||||||
|
{
|
||||||
|
fastFree(step.p);
|
||||||
|
step.p = step.buf;
|
||||||
|
size.p = &rows;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
refcount = 0;
|
refcount = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user