提交 a8226814 编写于 作者: V Vadim Pisarevsky
上级 30a3ff0d
......@@ -222,11 +222,10 @@ public:
}
};
MatAllocator* Mat::getStdAllocator()
{
static MatAllocator * allocator = new StdMatAllocator();
return allocator;
static StdMatAllocator allocator;
return &allocator;
}
void swap( Mat& a, Mat& b )
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册