From: Nisarg Thakkar Date: Mon, 23 Jun 2014 14:45:23 +0000 (+0530) Subject: Fix for Bug#3757: All dimension values are 0 after release is called X-Git-Tag: submit/tizen_ivi/20141117.190038~2^2~198^2~7^2~8^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=98421e5970819c652a940fd28937c205ca27dba7;p=profile%2Fivi%2Fopencv.git Fix for Bug#3757: All dimension values are 0 after release is called --- diff --git a/modules/core/include/opencv2/core/mat.hpp b/modules/core/include/opencv2/core/mat.hpp index 45c2590..90e7de0 100644 --- a/modules/core/include/opencv2/core/mat.hpp +++ b/modules/core/include/opencv2/core/mat.hpp @@ -366,7 +366,8 @@ inline void Mat::release() if( refcount && CV_XADD(refcount, -1) == 1 ) deallocate(); data = datastart = dataend = datalimit = 0; - size.p[0] = 0; + for(int i = 0; i < dims; i++) + size.p[i] = 0; refcount = 0; }