removed refcount field from Mat; that helped to find and eliminate some memory leaks. perf tests should probably pass now

This commit is contained in:
Vadim Pisarevsky
2013-10-24 16:08:15 +04:00
parent 5a34272150
commit 303df78cca
6 changed files with 39 additions and 47 deletions

View File

@@ -453,7 +453,7 @@ PyObject* pyopencv_from(const Mat& m)
if( !m.data )
Py_RETURN_NONE;
Mat temp, *p = (Mat*)&m;
if(!p->refcount || p->allocator != &g_numpyAllocator)
if(!p->u || p->allocator != &g_numpyAllocator)
{
temp.allocator = &g_numpyAllocator;
ERRWRAP2(m.copyTo(temp));