mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
core: fix Mat/UMat cleanup on exceptions in deallocate()
This commit is contained in:
@@ -411,8 +411,9 @@ UMat::~UMat()
|
||||
|
||||
void UMat::deallocate()
|
||||
{
|
||||
u->currAllocator->deallocate(u);
|
||||
UMatData* u_ = u;
|
||||
u = NULL;
|
||||
u_->currAllocator->deallocate(u_);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user