summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Bryan Forbes2011-09-26 17:15:33 +0200
committerGravatar Nikias Bassen2011-09-26 17:15:33 +0200
commitf57dd030b971d14942aaec3a42d176d57547355c (patch)
tree413066758c2cdf33746bcee86421325eaa6c7dcd
parent2ca52d65bb113e8639e732f67fec3c3223c0a444 (diff)
downloadlibplist-f57dd030b971d14942aaec3a42d176d57547355c.tar.gz
libplist-f57dd030b971d14942aaec3a42d176d57547355c.tar.bz2
Removed a call to __dealloc__ and added initialization of _array.
-rw-r--r--cython/plist.pyx2
1 files changed, 1 insertions, 1 deletions
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