diff options
| author | 2010-04-30 13:35:57 -0500 | |
|---|---|---|
| committer | 2012-03-20 23:25:55 +0100 | |
| commit | 3877711296cbfa4a0bcafc3c5560609a1ce2d079 (patch) | |
| tree | 751f1fd27ce3ee5d8dd9d748600381c0d2e5d6bd /cython/notification_proxy.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/notification_proxy.pxi')
| -rw-r--r-- | cython/notification_proxy.pxi | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cython/notification_proxy.pxi b/cython/notification_proxy.pxi index ccc30f8..07a72d9 100644 --- a/cython/notification_proxy.pxi +++ b/cython/notification_proxy.pxi | |||
| @@ -89,11 +89,7 @@ cdef class NotificationProxyClient(PropertyListService): | |||
| 89 | cdef np_client_t _c_client | 89 | cdef np_client_t _c_client |
| 90 | 90 | ||
| 91 | def __cinit__(self, iDevice device not None, int port, *args, **kwargs): | 91 | def __cinit__(self, iDevice device not None, int port, *args, **kwargs): |
| 92 | cdef: | 92 | self.handle_error(np_client_new(device._c_dev, port, &self._c_client)) |
| 93 | iDevice dev = device | ||
| 94 | np_error_t err | ||
| 95 | err = np_client_new(dev._c_dev, port, &self._c_client) | ||
| 96 | self.handle_error(err) | ||
| 97 | 93 | ||
| 98 | def __dealloc__(self): | 94 | def __dealloc__(self): |
| 99 | cdef np_error_t err | 95 | cdef np_error_t err |
