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.
2 parents 477eecf + 072226a commit f4ca1eaCopy full SHA for f4ca1ea
src/_macosx.m
@@ -1132,8 +1132,10 @@ - (void)setCanvas: (PyObject*)newCanvas
1132
}
1133
1134
static void _buffer_release(void* info, const void* data, size_t size) {
1135
+ PyGILState_STATE gstate = PyGILState_Ensure();
1136
PyBuffer_Release((Py_buffer *)info);
1137
free(info);
1138
+ PyGILState_Release(gstate);
1139
1140
1141
static int _copy_agg_buffer(CGContextRef cr, PyObject *renderer)
0 commit comments