mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 19:50:38 +08:00
Reverting, release beahviour was changed. Investigating on deallocate() issue
This commit is contained in:
parent
e320e4e69c
commit
4c29ffecc0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user