We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba2e4a9 commit 2bbdeb1Copy full SHA for 2bbdeb1
src/_macosx.m
@@ -1287,8 +1287,10 @@ - (void)setCanvas: (PyObject*)newCanvas
1287
}
1288
1289
static void _buffer_release(void* info, const void* data, size_t size) {
1290
+ PyGILState_STATE gstate = PyGILState_Ensure();
1291
PyBuffer_Release((Py_buffer *)info);
1292
free(info);
1293
+ PyGILState_Release(gstate);
1294
1295
1296
static int _copy_agg_buffer(CGContextRef cr, PyObject *renderer)
0 commit comments