Commit 564f5fcc authored by Andrey Pavlenko's avatar Andrey Pavlenko Committed by OpenCV Buildbot

Merge pull request #2280 from ilya-lavrenov:attempt_pvc

parents b7ffed7b d957e8e4
......@@ -221,8 +221,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