Commit a15333a3 authored by Simon Feltman's avatar Simon Feltman
Browse files

Add GIL safety to pyobject_copy for copying boxed PyObjects

https://bugzilla.gnome.org/show_bug.cgi?id=688081
parent 097c116d
......@@ -2386,8 +2386,11 @@ static gpointer
pyobject_copy(gpointer boxed)
{
PyObject *object = boxed;
PyGILState_STATE state;
state = pyglib_gil_state_ensure();
Py_INCREF(object);
pyglib_gil_state_release(state);
return object;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment