diff options
author | Bryan Forbes | 2010-04-30 13:35:57 -0500 |
---|---|---|
committer | Martin Szulecki | 2012-03-20 23:25:55 +0100 |
commit | 3877711296cbfa4a0bcafc3c5560609a1ce2d079 (patch) | |
tree | 751f1fd27ce3ee5d8dd9d748600381c0d2e5d6bd /cython/mobilesync.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/mobilesync.pxi')
-rw-r--r-- | cython/mobilesync.pxi | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cython/mobilesync.pxi b/cython/mobilesync.pxi index 1b36ba7..00b511f 100644 --- a/cython/mobilesync.pxi +++ b/cython/mobilesync.pxi @@ -33,11 +33,7 @@ cdef class MobileSyncClient(DeviceLinkService): cdef mobilesync_client_t _c_client def __cinit__(self, iDevice device not None, int port, *args, **kwargs): - cdef: - iDevice dev = device - mobilesync_error_t err - err = mobilesync_client_new(dev._c_dev, port, &(self._c_client)) - self.handle_error(err) + self.handle_error(mobilesync_client_new(device._c_dev, port, &(self._c_client))) def __dealloc__(self): cdef mobilesync_error_t err |