attempt to fix pure virtual call in Mat::deallocate
This commit is contained in:
parent
42ac3123ec
commit
d957e8e40d
@ -222,8 +222,8 @@ public:
|
|||||||
|
|
||||||
MatAllocator* Mat::getStdAllocator()
|
MatAllocator* Mat::getStdAllocator()
|
||||||
{
|
{
|
||||||
static StdMatAllocator allocator;
|
static MatAllocator * allocator = new StdMatAllocator();
|
||||||
return &allocator;
|
return allocator;
|
||||||
}
|
}
|
||||||
|
|
||||||
void swap( Mat& a, Mat& b )
|
void swap( Mat& a, Mat& b )
|
||||||
|
@ -3959,8 +3959,8 @@ public:
|
|||||||
|
|
||||||
MatAllocator* getOpenCLAllocator()
|
MatAllocator* getOpenCLAllocator()
|
||||||
{
|
{
|
||||||
static OpenCLAllocator allocator;
|
static MatAllocator * allocator = new OpenCLAllocator();
|
||||||
return &allocator;
|
return allocator;
|
||||||
}
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////// Utility functions /////////////////////////////////////////////////
|
///////////////////////////////////////////// Utility functions /////////////////////////////////////////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user