fix memory leak for Mat::getUMat() operation

This commit is contained in:
Alexander Alekhin
2014-02-04 17:23:26 +04:00
parent 22146e4b18
commit 83a2b566a3
2 changed files with 2 additions and 5 deletions

View File

@@ -191,7 +191,6 @@ public:
bool allocate(UMatData* u, int /*accessFlags*/) const
{
if(!u) return false;
CV_XADD(&u->urefcount, 1);
return true;
}