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