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: ...@@ -221,8 +221,8 @@ public:
MatAllocator* Mat::getStdAllocator() MatAllocator* Mat::getStdAllocator()
{ {
static StdMatAllocator allocator; static MatAllocator * allocator = new StdMatAllocator();
return &allocator; return allocator;
} }
void swap( Mat& a, Mat& b ) void swap( Mat& a, Mat& b )
......
...@@ -3959,8 +3959,8 @@ public: ...@@ -3959,8 +3959,8 @@ public:
MatAllocator* getOpenCLAllocator() MatAllocator* getOpenCLAllocator()
{ {
static OpenCLAllocator allocator; static MatAllocator * allocator = new OpenCLAllocator();
return &allocator; return allocator;
} }
///////////////////////////////////////////// Utility functions ///////////////////////////////////////////////// ///////////////////////////////////////////// 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