summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar aymenim2016-03-15 23:56:08 +0300
committerGravatar Nikias Bassen2024-04-01 02:55:03 +0200
commitfb1dec7e2cbb2eae14536d8d68db25d3f9384ac1 (patch)
treead0b1457e1e6f2073940dc1d0059bb4a7baf3078
parent9649448434ab5c674d2cc11f76e69e6ee5e9dc09 (diff)
downloadlibimobiledevice-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.pxi2
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):