Resolves bug #3450 (Improperly cleaning up resources in DllMain)
This commit is contained in:
@@ -1581,7 +1581,7 @@ void finish()
|
||||
|
||||
#define IMPLEMENT_REFCOUNTABLE() \
|
||||
void addref() { CV_XADD(&refcount, 1); } \
|
||||
void release() { if( CV_XADD(&refcount, -1) == 1 ) delete this; } \
|
||||
void release() { if( CV_XADD(&refcount, -1) == 1 && !cv::__termination) delete this; } \
|
||||
int refcount
|
||||
|
||||
/////////////////////////////////////////// Platform /////////////////////////////////////////////
|
||||
|
Reference in New Issue
Block a user