Commit 11e2a216 authored by Alexander Alekhin's avatar Alexander Alekhin

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

parent 70f2ee91
......@@ -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);
......
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