Commit e14171fd authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

fixed crash in Python bindings

parent a9065b7d
...@@ -234,14 +234,14 @@ public: ...@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment