fixed crash in Python bindings

This commit is contained in:
Vadim Pisarevsky 2013-10-24 17:37:33 +04:00
parent a9065b7d0c
commit e14171fd33

View File

@ -234,14 +234,14 @@ public:
} }
} }
void map(UMatData* u, int accessFlags) const void map(UMatData*, int) const
{ {
stdAllocator->map(u, accessFlags);
} }
void unmap(UMatData* u) const void unmap(UMatData* u) const
{ {
stdAllocator->unmap(u); if(u->urefcount == 0)
deallocate(u);
} }
void download(UMatData* u, void* dstptr, void download(UMatData* u, void* dstptr,