Commit a8226814 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky
parent 30a3ff0d
......@@ -222,11 +222,10 @@ public:
}
};
MatAllocator* Mat::getStdAllocator()
{
static MatAllocator * allocator = new StdMatAllocator();
return allocator;
static StdMatAllocator allocator;
return &allocator;
}
void swap( Mat& a, Mat& b )
......
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