From f57dd030b971d14942aaec3a42d176d57547355c Mon Sep 17 00:00:00 2001 From: Bryan Forbes Date: Mon, 26 Sep 2011 17:15:33 +0200 Subject: Removed a call to __dealloc__ and added initialization of _array. --- cython/plist.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cython/plist.pyx b/cython/plist.pyx index a1282e7..336b16f 100644 --- a/cython/plist.pyx +++ b/cython/plist.pyx @@ -461,7 +461,6 @@ cdef class Dict(Node): def __dealloc__(self): self._map = None - Node.__dealloc__(self) def __richcmp__(self, other, op): cdef dict d = self.get_value() @@ -564,6 +563,7 @@ cdef class Array(Node): self._init() cdef void _init(self): + self._array = [] cdef uint32_t size = plist_array_get_size(self._c_node) cdef plist_t subnode = NULL -- cgit v1.1-32-gdbae