From 7275b8e8b1134c85d6f4b694ad6f515b3a6dace9 Mon Sep 17 00:00:00 2001 From: Bryan Forbes Date: Tue, 13 Apr 2010 17:12:50 -0500 Subject: Use stdlib.free and plist.plist_free. --- cython/imobiledevice.pyx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cython/imobiledevice.pyx') diff --git a/cython/imobiledevice.pyx b/cython/imobiledevice.pyx index 77a7a3a..bde43d0 100644 --- a/cython/imobiledevice.pyx +++ b/cython/imobiledevice.pyx @@ -172,8 +172,8 @@ cdef class iDevice(Base): cdef extern from *: ctypedef char* const_char_ptr "const char*" - void free(void *ptr) - void plist_free(plist.plist_t node) + +cimport stdlib cdef class BaseService(Base): __service_name__ = None @@ -191,7 +191,7 @@ cdef class PropertyListService(BaseService): self.handle_error(err) except BaseError, e: if c_node != NULL: - plist_free(c_node) + plist.plist_free(c_node) raise return plist.plist_t_to_node(c_node) -- cgit v1.1-32-gdbae