Commit 23a6588a authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 4558d23f
......@@ -134,7 +134,12 @@ cdef class PyFileH:
cdef class PyMapping:
def __dealloc__(PyMapping pywmmap):
pywmmap.wmmap = nil # XXX unmap too ?
# unmap just in case (double unmap is ok)
with nogil:
err = wmmap_unmap_pyexc(pywmmap.wmmap)
pywmmap.wmmap = nil
if err != nil:
raise pyerr(err)
property blk_start:
def __get__(PyMapping pywmmap):
......
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