summaryrefslogtreecommitdiffstats
path: root/cython/mobilebackup.pxi
diff options
context:
space:
mode:
authorGravatar Bryan Forbes2010-04-30 13:35:57 -0500
committerGravatar Martin Szulecki2012-03-20 23:25:55 +0100
commit3877711296cbfa4a0bcafc3c5560609a1ce2d079 (patch)
tree751f1fd27ce3ee5d8dd9d748600381c0d2e5d6bd /cython/mobilebackup.pxi
parent74943414c8e04a92f42dcbc4fac1599c7f9deed2 (diff)
downloadlibimobiledevice-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.pxi6
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):
cdef mobilebackup_client_t _c_client
def __cinit__(self, iDevice device not None, int port, *args, **kwargs):
- cdef:
- iDevice dev = device
- mobilebackup_error_t err
- err = mobilebackup_client_new(dev._c_dev, port, &self._c_client)
- self.handle_error(err)
+ self.handle_error(mobilebackup_client_new(device._c_dev, port, &self._c_client))
def __dealloc__(self):
cdef mobilebackup_error_t err