Commit 4c29ffec authored by Stefano Fabri's avatar Stefano Fabri

Reverting, release beahviour was changed. Investigating on deallocate() issue

parent e320e4e6
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment