Merge pull request #11216 from dan-masek:fix_issue_11205

This commit is contained in:
Alexander Alekhin
2018-04-04 15:37:57 +00:00
+4
View File
@@ -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);
}