Commit 07cffc9d authored by Maksim Shabunin's avatar Maksim Shabunin

Merge pull request #7090 from daB0bby:patch-1

parents c2394339 5cc1ef90
......@@ -680,7 +680,8 @@ void Mat::addref()
CV_XADD(&u->refcount, 1);
}
inline void Mat::release()
inline
void Mat::release()
{
if( u && CV_XADD(&u->refcount, -1) == 1 )
deallocate();
......
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