Commit d294e9d6 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #11216 from dan-masek:fix_issue_11205

parents d57e5c31 eae3ed0c
......@@ -1636,6 +1636,8 @@ static void OnChange(int pos, void *param)
PyObject *r = PyObject_Call(PyTuple_GetItem(o, 0), args, NULL);
if (r == NULL)
PyErr_Print();
else
Py_DECREF(r);
Py_DECREF(args);
PyGILState_Release(gstate);
}
......@@ -1678,6 +1680,8 @@ static void OnButtonChange(int state, void *param)
PyObject *r = PyObject_Call(PyTuple_GetItem(o, 0), args, NULL);
if (r == NULL)
PyErr_Print();
else
Py_DECREF(r);
Py_DECREF(args);
PyGILState_Release(gstate);
}
......
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