From 06bcafd6fa4765ed09442d497eef59cd83bc48ef Mon Sep 17 00:00:00 2001 From: polastyn <78505251+gresm@users.noreply.github.com> Date: Fri, 16 Aug 2024 18:08:52 +0200 Subject: [PATCH] Bugfix. --- src_c/_event.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src_c/_event.c b/src_c/_event.c index 8b3936a5eb..4ac0243f5f 100644 --- a/src_c/_event.c +++ b/src_c/_event.c @@ -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; @@ -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;