1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

Merge pull request #4150 from alalek:opencv_org_issue_4428

This commit is contained in:
Alexander Alekhin
2015-06-29 17:08:54 +00:00
6 changed files with 72 additions and 61 deletions
+1 -6
View File
@@ -222,14 +222,9 @@ public:
}
};
static StdMatAllocator *mat_allocator = NULL;
MatAllocator* Mat::getStdAllocator()
{
if (mat_allocator == NULL)
{
mat_allocator = new StdMatAllocator();
}
return mat_allocator;
CV_SINGLETON_LAZY_INIT(MatAllocator, new StdMatAllocator())
}
void swap( Mat& a, Mat& b )