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

pull/12791/head
Alexander Alekhin 6 years ago
parent 70f2ee917e
commit 11e2a216c5
  1. 4
      modules/core/src/ocl.cpp

@ -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);

Loading…
Cancel
Save