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 2e9eabb commit 06bcafdCopy full SHA for 06bcafd
src_c/_event.c
@@ -1884,7 +1884,7 @@ pg_event_allowed_set(PyObject *self, PyObject *args)
1884
VIDEO_INIT_CHECK();
1885
1886
int e_type, e_flag;
1887
- PyObject *e_flago;
+ PyObject *e_flago = NULL;
1888
1889
if (!PyArg_ParseTuple(args, "iO", &e_type, &e_flago))
1890
return NULL;
@@ -1895,7 +1895,6 @@ pg_event_allowed_set(PyObject *self, PyObject *args)
1895
}
1896
1897
e_flag = PyObject_IsTrue(e_flago);
1898
- Py_DECREF(e_flago);
1899
1900
if (e_flag < 0)
1901
0 commit comments