diff options
| author | 2010-04-30 13:35:57 -0500 | |
|---|---|---|
| committer | 2012-03-20 23:25:55 +0100 | |
| commit | 3877711296cbfa4a0bcafc3c5560609a1ce2d079 (patch) | |
| tree | 751f1fd27ce3ee5d8dd9d748600381c0d2e5d6bd /cython/afc.pxi | |
| parent | 74943414c8e04a92f42dcbc4fac1599c7f9deed2 (diff) | |
| download | libimobiledevice-3877711296cbfa4a0bcafc3c5560609a1ce2d079.tar.gz libimobiledevice-3877711296cbfa4a0bcafc3c5560609a1ce2d079.tar.bz2 | |
More memory leak plugging. Some code cleanup too.
Diffstat (limited to 'cython/afc.pxi')
| -rw-r--r-- | cython/afc.pxi | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cython/afc.pxi b/cython/afc.pxi index 9200067..c33dbfd 100644 --- a/cython/afc.pxi +++ b/cython/afc.pxi | |||
| @@ -154,11 +154,7 @@ cdef class AfcClient(BaseService): | |||
| 154 | cdef afc_client_t _c_client | 154 | cdef afc_client_t _c_client |
| 155 | 155 | ||
| 156 | def __cinit__(self, iDevice device not None, int port, *args, **kwargs): | 156 | def __cinit__(self, iDevice device not None, int port, *args, **kwargs): |
| 157 | cdef: | 157 | self.handle_error(afc_client_new(device._c_dev, port, &(self._c_client))) |
| 158 | iDevice dev = device | ||
| 159 | afc_error_t err | ||
| 160 | err = afc_client_new(dev._c_dev, port, &(self._c_client)) | ||
| 161 | self.handle_error(err) | ||
| 162 | 158 | ||
| 163 | def __dealloc__(self): | 159 | def __dealloc__(self): |
| 164 | cdef afc_error_t err | 160 | cdef afc_error_t err |
