Commit d957e8e4 authored by Ilya Lavrenov's avatar Ilya Lavrenov

attempt to fix pure virtual call in Mat::deallocate

parent 42ac3123
......@@ -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 /////////////////////////////////////////////////
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment