summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--glib/pygmainloop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/glib/pygmainloop.c b/glib/pygmainloop.c
index 3f4cf3d..de24649 100644
--- a/glib/pygmainloop.c
+++ b/glib/pygmainloop.c
@@ -259,6 +259,7 @@ pyg_main_loop_init(PyGMainLoop *self, PyObject *args, PyObject *kwargs)
self->signal_source = pyg_signal_watch_new();
g_source_attach(self->signal_source, context);
+ g_source_unref(self->signal_source);
return 0;
}