diff options
| author | 2010-04-30 13:35:57 -0500 | |
|---|---|---|
| committer | 2012-03-20 23:25:55 +0100 | |
| commit | 3877711296cbfa4a0bcafc3c5560609a1ce2d079 (patch) | |
| tree | 751f1fd27ce3ee5d8dd9d748600381c0d2e5d6bd /cython/mobilebackup.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/mobilebackup.pxi')
| -rw-r--r-- | cython/mobilebackup.pxi | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cython/mobilebackup.pxi b/cython/mobilebackup.pxi index cb5276e..4f07683 100644 --- a/cython/mobilebackup.pxi +++ b/cython/mobilebackup.pxi | |||
| @@ -33,11 +33,7 @@ cdef class MobileBackupClient(PropertyListService): | |||
| 33 | cdef mobilebackup_client_t _c_client | 33 | cdef mobilebackup_client_t _c_client |
| 34 | 34 | ||
| 35 | def __cinit__(self, iDevice device not None, int port, *args, **kwargs): | 35 | def __cinit__(self, iDevice device not None, int port, *args, **kwargs): |
| 36 | cdef: | 36 | self.handle_error(mobilebackup_client_new(device._c_dev, port, &self._c_client)) |
| 37 | iDevice dev = device | ||
| 38 | mobilebackup_error_t err | ||
| 39 | err = mobilebackup_client_new(dev._c_dev, port, &self._c_client) | ||
| 40 | self.handle_error(err) | ||
| 41 | 37 | ||
| 42 | def __dealloc__(self): | 38 | def __dealloc__(self): |
| 43 | cdef mobilebackup_error_t err | 39 | cdef mobilebackup_error_t err |
