[opencv] 45/89: core: drop type/dims/rows/cols information in Mat::release()
Nobuhiro Iwamatsu
iwamatsu at moszumanska.debian.org
Sat May 13 09:57:24 UTC 2017
This is an automated email from the git hooks/post-receive script.
iwamatsu pushed a commit to annotated tag 2.4.13.2
in repository opencv.
commit e878b60dbcd3116b7ab6bd456d29228655bcdb00
Author: Alexander Alekhin <alexander.alekhin at intel.com>
Date: Tue Nov 15 18:55:23 2016 +0300
core: drop type/dims/rows/cols information in Mat::release()
---
modules/core/include/opencv2/core/mat.hpp | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/modules/core/include/opencv2/core/mat.hpp b/modules/core/include/opencv2/core/mat.hpp
index 631c698..bebe226 100644
--- a/modules/core/include/opencv2/core/mat.hpp
+++ b/modules/core/include/opencv2/core/mat.hpp
@@ -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;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opencv.git
More information about the debian-science-commits
mailing list