summaryrefslogtreecommitdiffstats
path: root/cython/imobiledevice.pyx
diff options
context:
space:
mode:
authorGravatar Bryan Forbes2010-04-13 17:12:50 -0500
committerGravatar Martin Szulecki2012-03-20 23:25:55 +0100
commit7275b8e8b1134c85d6f4b694ad6f515b3a6dace9 (patch)
tree3ab34f9097528839c2c78b70b659ba7d90cf736c /cython/imobiledevice.pyx
parent360b7316b520baeae11c98cbd6423029141c2137 (diff)
downloadlibimobiledevice-7275b8e8b1134c85d6f4b694ad6f515b3a6dace9.tar.gz
libimobiledevice-7275b8e8b1134c85d6f4b694ad6f515b3a6dace9.tar.bz2
Use stdlib.free and plist.plist_free.
Diffstat (limited to 'cython/imobiledevice.pyx')
-rw-r--r--cython/imobiledevice.pyx6
1 files changed, 3 insertions, 3 deletions
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):
172 172
173cdef extern from *: 173cdef extern from *:
174 ctypedef char* const_char_ptr "const char*" 174 ctypedef char* const_char_ptr "const char*"
175 void free(void *ptr) 175
176 void plist_free(plist.plist_t node) 176cimport stdlib
177 177
178cdef class BaseService(Base): 178cdef class BaseService(Base):
179 __service_name__ = None 179 __service_name__ = None
@@ -191,7 +191,7 @@ cdef class PropertyListService(BaseService):
191 self.handle_error(err) 191 self.handle_error(err)
192 except BaseError, e: 192 except BaseError, e:
193 if c_node != NULL: 193 if c_node != NULL:
194 plist_free(c_node) 194 plist.plist_free(c_node)
195 raise 195 raise
196 196
197 return plist.plist_t_to_node(c_node) 197 return plist.plist_t_to_node(c_node)