From 3877711296cbfa4a0bcafc3c5560609a1ce2d079 Mon Sep 17 00:00:00 2001 From: Bryan Forbes Date: Fri, 30 Apr 2010 13:35:57 -0500 Subject: More memory leak plugging. Some code cleanup too. --- cython/mobilesync.pxi | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'cython/mobilesync.pxi') 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 -- cgit v1.1-32-gdbae