summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Pogonyshev <pogonyshev@gmx.net>2009-09-22 22:02:27 +0300
committerPaul Pogonyshev <pogonyshev@gmx.net>2009-09-22 22:03:48 +0300
commitd042402b7c649b2bed7f20038eb82518ec7cc9b3 (patch)
treefc6dcd923098e6ccce4508fe9faa54f4e946539d
parent640be8109d066e85ed77c810830a5f73c750415b (diff)
downloadpygobject-d042402b7c649b2bed7f20038eb82518ec7cc9b3.tar.gz
pygobject-d042402b7c649b2bed7f20038eb82518ec7cc9b3.tar.xz
pygobject-d042402b7c649b2bed7f20038eb82518ec7cc9b3.zip
Plug reference leak of GSource in pyg_main_loop_init()
Bug #579406, second change.
-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;
}