diff options
author | aymenim | 2016-03-15 23:56:08 +0300 |
---|---|---|
committer | Nikias Bassen | 2024-04-01 02:55:03 +0200 |
commit | fb1dec7e2cbb2eae14536d8d68db25d3f9384ac1 (patch) | |
tree | ad0b1457e1e6f2073940dc1d0059bb4a7baf3078 | |
parent | 9649448434ab5c674d2cc11f76e69e6ee5e9dc09 (diff) | |
download | libimobiledevice-fb1dec7e2cbb2eae14536d8d68db25d3f9384ac1.tar.gz libimobiledevice-fb1dec7e2cbb2eae14536d8d68db25d3f9384ac1.tar.bz2 |
cython: fixed notification_proxy callback gil lock
cython notification proxy bug segmentation fault when callback called
without gil
-rw-r--r-- | cython/notification_proxy.pxi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cython/notification_proxy.pxi b/cython/notification_proxy.pxi index 4ffbf07..203c783 100644 --- a/cython/notification_proxy.pxi +++ b/cython/notification_proxy.pxi @@ -70,7 +70,7 @@ NP_ITDBPREP_DID_END = C_NP_ITDBPREP_DID_END NP_LANGUAGE_CHANGED = C_NP_LANGUAGE_CHANGED NP_ADDRESS_BOOK_PREF_CHANGED = C_NP_ADDRESS_BOOK_PREF_CHANGED -cdef void np_notify_cb(const_char_ptr notification, void *py_callback): +cdef void np_notify_cb(const_char_ptr notification, void *py_callback) with gil: (<object>py_callback)(notification) cdef class NotificationProxyError(BaseError): |