This commit is contained in:
Vadim Pisarevsky 2015-04-29 11:47:12 +03:00
parent 30a3ff0de6
commit a8226814c5

View File

@ -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 )