mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 05:29:54 +08:00
ocl(win32): bypass deallocate() during process termination
This commit is contained in:
parent
70f2ee917e
commit
11e2a216c5
@ -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…
Reference in New Issue
Block a user