Commit d85355b4 authored by candide guevara's avatar candide guevara Committed by GitHub

__dealloc__ should be def not cdef

parent f53690f3
...@@ -409,9 +409,9 @@ compatible types.:: ...@@ -409,9 +409,9 @@ compatible types.::
cdef class OwnedPointer: cdef class OwnedPointer:
cdef void* ptr cdef void* ptr
cdef __dealloc__(self): def __dealloc__(self):
if ptr != NULL: if self.ptr != NULL:
free(ptr) free(self.ptr)
@staticmethod @staticmethod
cdef create(void* ptr): cdef create(void* ptr):
......
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