From 4c29ffecc01a27700fe3a441b44d26eef9add462 Mon Sep 17 00:00:00 2001 From: Stefano Fabri Date: Tue, 26 Oct 2010 13:55:16 +0000 Subject: [PATCH] Reverting, release beahviour was changed. Investigating on deallocate() issue --- modules/core/include/opencv2/core/mat.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/core/include/opencv2/core/mat.hpp b/modules/core/include/opencv2/core/mat.hpp index e6770f580..5db98529c 100644 --- a/modules/core/include/opencv2/core/mat.hpp +++ b/modules/core/include/opencv2/core/mat.hpp @@ -378,8 +378,7 @@ inline void Mat::addref() inline void Mat::release() { if( refcount && CV_XADD(refcount, -1) == 1 ) - //deallocate(); - fastFree(datastart); + deallocate(); data = datastart = dataend = datalimit = 0; size.p[0] = 0; refcount = 0;