diff options
author | Paul Pogonyshev <pogonyshev@gmx.net> | 2009-09-22 22:02:27 +0300 |
---|---|---|
committer | Paul Pogonyshev <pogonyshev@gmx.net> | 2009-09-22 22:03:48 +0300 |
commit | d042402b7c649b2bed7f20038eb82518ec7cc9b3 (patch) | |
tree | fc6dcd923098e6ccce4508fe9faa54f4e946539d | |
parent | 640be8109d066e85ed77c810830a5f73c750415b (diff) | |
download | pygobject-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.c | 1 |
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; } |