1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

ocl(win32): bypass deallocate() during process termination

This commit is contained in:
Alexander Alekhin
2018-10-10 18:04:39 +00:00
parent 70f2ee917e
commit 11e2a216c5
+4
View File
@@ -4779,6 +4779,10 @@ public:
void deallocate_(UMatData* u) const
{
#ifdef _WIN32
if (cv::__termination) // process is not in consistent state (after ExitProcess call) and terminating
return; // avoid any OpenCL calls
#endif
if(u->tempUMat())
{
CV_Assert(u->origdata);