umat: fix memory leaks

This commit is contained in:
Alexander Alekhin
2013-12-16 16:46:36 +04:00
parent 11071dd241
commit 9cb31e86ae
4 changed files with 16 additions and 6 deletions

View File

@@ -617,9 +617,9 @@ inline void Mat::release()
{
if( u && CV_XADD(&u->refcount, -1) == 1 )
deallocate();
u = NULL;
data = datastart = dataend = datalimit = 0;
size.p[0] = 0;
u = 0;
}
inline