Thanks to visit codestin.com Credit goes to github.com
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 f05167c commit 072226aCopy full SHA for 072226a
1 file changed
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