提交 e878b60d 编写于 作者: A Alexander Alekhin

core: drop type/dims/rows/cols information in Mat::release()

上级 979b0ae9
......@@ -368,6 +368,16 @@ inline void Mat::release()
data = datastart = dataend = datalimit = 0;
for(int i = 0; i < dims; i++)
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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册