Commit cf12b089 authored by Robert Bradshaw's avatar Robert Bradshaw Committed by GitHub

Merge pull request #2112 from candide-guevara/patch-1

documentation __dealloc__ should be def not cdef
parents f53690f3 4a179efd
...@@ -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