From b7f23e37428607da7d1d263bf05304b32e3dc28d Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 14 May 2020 16:25:42 -0700 Subject: [PATCH] i_wxPyMakeBuffer needs to acquire the GIL (cherry picked from commit 6885cf4226acbb524012f600affd0a450cce525b) --- src/wxpy_api.sip | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wxpy_api.sip b/src/wxpy_api.sip index f834e468..9fda151a 100644 --- a/src/wxpy_api.sip +++ b/src/wxpy_api.sip @@ -452,7 +452,7 @@ bool i_wxPyCheckForApp(bool raiseException) { // Make a memory view object from a C buffer and size. PyObject* i_wxPyMakeBuffer(void* ptr, Py_ssize_t len, bool readOnly=false) { - // GIL should already be held + wxPyThreadBlocker blocker; if (ptr && len) { Py_buffer view; int flags = PyBUF_FORMAT|PyBUF_ND;