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:
@@ -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));
|
||||
|
Reference in New Issue
Block a user