Skip to content

Commit 06bcafd

Browse files
committed
Bugfix.
1 parent 2e9eabb commit 06bcafd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src_c/_event.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1884,7 +1884,7 @@ pg_event_allowed_set(PyObject *self, PyObject *args)
18841884
VIDEO_INIT_CHECK();
18851885

18861886
int e_type, e_flag;
1887-
PyObject *e_flago;
1887+
PyObject *e_flago = NULL;
18881888

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

18971897
e_flag = PyObject_IsTrue(e_flago);
1898-
Py_DECREF(e_flago);
18991898

19001899
if (e_flag < 0)
19011900
return NULL;

0 commit comments

Comments
 (0)