diff options
Diffstat (limited to 'cython/imobiledevice.pyx')
| -rw-r--r-- | cython/imobiledevice.pyx | 6 |
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 | ||
| 173 | cdef extern from *: | 173 | cdef 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) | 176 | cimport stdlib |
| 177 | 177 | ||
| 178 | cdef class BaseService(Base): | 178 | cdef 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) |
