From 89900d6decbfe805720a9cbce65655ec31086f94 Mon Sep 17 00:00:00 2001 From: Bryan Forbes Date: Mon, 26 Sep 2011 17:16:51 +0200 Subject: Fixed some memory leaks and unicode handling. --- cython/plist.pxd | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'cython/plist.pxd') diff --git a/cython/plist.pxd b/cython/plist.pxd index daafd78..6a96817 100644 --- a/cython/plist.pxd +++ b/cython/plist.pxd @@ -1,25 +1,26 @@ cdef extern from "plist/plist.h": ctypedef void *plist_t ctypedef void *plist_dict_iter + void plist_free(plist_t node) cdef class Node: cdef plist_t _c_node cdef bool _c_managed cpdef object __deepcopy__(self, memo=*) - cpdef bytes to_xml(self) + cpdef unicode to_xml(self) cpdef bytes to_bin(self) cpdef object copy(self) cdef class Bool(Node): - cpdef set_value(self, value) + cpdef set_value(self, object value) cpdef bool get_value(self) cdef class Integer(Node): - cpdef set_value(self, value) + cpdef set_value(self, object value) cpdef int get_value(self) cdef class Real(Node): - cpdef set_value(self, value) + cpdef set_value(self, object value) cpdef float get_value(self) cdef class String(Node): -- cgit v1.1-32-gdbae