Merge pull request #2280 from ilya-lavrenov:attempt_pvc

This commit is contained in:
Andrey Pavlenko
2014-02-04 21:22:49 +04:00
committed by OpenCV Buildbot
2 changed files with 4 additions and 4 deletions

View File

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

View File

@@ -3959,8 +3959,8 @@ public:
MatAllocator* getOpenCLAllocator()
{
static OpenCLAllocator allocator;
return &allocator;
static MatAllocator * allocator = new OpenCLAllocator();
return allocator;
}
///////////////////////////////////////////// Utility functions /////////////////////////////////////////////////