[pygobject] Plug reference leak of GSource in pyg_main_loop_init()



commit d042402b7c649b2bed7f20038eb82518ec7cc9b3
Author: Paul Pogonyshev <pogonyshev gmx net>
Date:   Tue Sep 22 22:02:27 2009 +0300

    Plug reference leak of GSource in pyg_main_loop_init()
    
    Bug #579406, second change.

 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;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]