Skip to content

Commit

Permalink
Bugfix.
Browse files Browse the repository at this point in the history
  • Loading branch information
gresm committed Aug 16, 2024
1 parent 2e9eabb commit 06bcafd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src_c/_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -1884,7 +1884,7 @@ pg_event_allowed_set(PyObject *self, PyObject *args)
VIDEO_INIT_CHECK();

int e_type, e_flag;
PyObject *e_flago;
PyObject *e_flago = NULL;

if (!PyArg_ParseTuple(args, "iO", &e_type, &e_flago))
return NULL;
Expand All @@ -1895,7 +1895,6 @@ pg_event_allowed_set(PyObject *self, PyObject *args)
}

e_flag = PyObject_IsTrue(e_flago);
Py_DECREF(e_flago);

if (e_flag < 0)
return NULL;
Expand Down

0 comments on commit 06bcafd

Please sign in to comment.