From e320e4e69c946783077ccf92a42693c0eb561d63 Mon Sep 17 00:00:00 2001 From: Stefano Fabri Date: Tue, 26 Oct 2010 13:42:25 +0000 Subject: [PATCH] Linking doesn't find deallocate() --- modules/core/include/opencv2/core/mat.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/core/include/opencv2/core/mat.hpp b/modules/core/include/opencv2/core/mat.hpp index 5db98529cd..e6770f580f 100644 --- a/modules/core/include/opencv2/core/mat.hpp +++ b/modules/core/include/opencv2/core/mat.hpp @@ -378,7 +378,8 @@ inline void Mat::addref() inline void Mat::release() { if( refcount && CV_XADD(refcount, -1) == 1 ) - deallocate(); + //deallocate(); + fastFree(datastart); data = datastart = dataend = datalimit = 0; size.p[0] = 0; refcount = 0;