1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

Merge pull request #1868 from KonstantinMatskevich:umat_bugfix

This commit is contained in:
Andrey Pavlenko
2013-11-26 23:24:50 +04:00
committed by OpenCV Buildbot
+2
View File
@@ -2705,6 +2705,7 @@ public:
}
u->markHostCopyObsolete(false);
clReleaseMemObject((cl_mem)u->handle);
u->handle = 0;
u->currAllocator = u->prevAllocator;
if(u->data && u->copyOnMap())
fastFree(u->data);
@@ -2717,6 +2718,7 @@ public:
if(u->data && u->copyOnMap())
fastFree(u->data);
clReleaseMemObject((cl_mem)u->handle);
u->handle = 0;
delete u;
}
}