diff options
| author | 2011-09-26 17:15:33 +0200 | |
|---|---|---|
| committer | 2011-09-26 17:15:33 +0200 | |
| commit | f57dd030b971d14942aaec3a42d176d57547355c (patch) | |
| tree | 413066758c2cdf33746bcee86421325eaa6c7dcd | |
| parent | 2ca52d65bb113e8639e732f67fec3c3223c0a444 (diff) | |
| download | libplist-f57dd030b971d14942aaec3a42d176d57547355c.tar.gz libplist-f57dd030b971d14942aaec3a42d176d57547355c.tar.bz2 | |
Removed a call to __dealloc__ and added initialization of _array.
| -rw-r--r-- | cython/plist.pyx | 2 |
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): | |||
| 461 | 461 | ||
| 462 | def __dealloc__(self): | 462 | def __dealloc__(self): |
| 463 | self._map = None | 463 | self._map = None |
| 464 | Node.__dealloc__(self) | ||
| 465 | 464 | ||
| 466 | def __richcmp__(self, other, op): | 465 | def __richcmp__(self, other, op): |
| 467 | cdef dict d = self.get_value() | 466 | cdef dict d = self.get_value() |
| @@ -564,6 +563,7 @@ cdef class Array(Node): | |||
| 564 | self._init() | 563 | self._init() |
| 565 | 564 | ||
| 566 | cdef void _init(self): | 565 | cdef void _init(self): |
| 566 | self._array = [] | ||
| 567 | cdef uint32_t size = plist_array_get_size(self._c_node) | 567 | cdef uint32_t size = plist_array_get_size(self._c_node) |
| 568 | cdef plist_t subnode = NULL | 568 | cdef plist_t subnode = NULL |
| 569 | 569 | ||
