mirror of
https://github.com/opencv/opencv.git
synced 2025-06-12 20:42:53 +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
|
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())
|
if(u->tempUMat())
|
||||||
{
|
{
|
||||||
CV_Assert(u->origdata);
|
CV_Assert(u->origdata);
|
||||||
|
Loading…
Reference in New Issue
Block a user