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/notification_proxy.pxi | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'cython/notification_proxy.pxi') 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): cdef np_client_t _c_client def __cinit__(self, iDevice device not None, int port, *args, **kwargs): - cdef: - iDevice dev = device - np_error_t err - err = np_client_new(dev._c_dev, port, &self._c_client) - self.handle_error(err) + self.handle_error(np_client_new(device._c_dev, port, &self._c_client)) def __dealloc__(self): cdef np_error_t err -- cgit v1.1-32-gdbae