mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
attempt to fix pure virtual call in Mat::deallocate
This commit is contained in:
@@ -222,8 +222,8 @@ public:
|
||||
|
||||
MatAllocator* Mat::getStdAllocator()
|
||||
{
|
||||
static StdMatAllocator allocator;
|
||||
return &allocator;
|
||||
static MatAllocator * allocator = new StdMatAllocator();
|
||||
return allocator;
|
||||
}
|
||||
|
||||
void swap( Mat& a, Mat& b )
|
||||
|
||||
@@ -3959,8 +3959,8 @@ public:
|
||||
|
||||
MatAllocator* getOpenCLAllocator()
|
||||
{
|
||||
static OpenCLAllocator allocator;
|
||||
return &allocator;
|
||||
static MatAllocator * allocator = new OpenCLAllocator();
|
||||
return allocator;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////// Utility functions /////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user