[glib/wip/gcleanup: 32/79] unix: Fix memory leak in unix test



commit 4b0420c12e0dc7f3af45d83c4a3b7e6d326a3893
Author: Stef Walter <stefw gnome org>
Date:   Thu Nov 7 22:40:59 2013 +0100

    unix: Fix memory leak in unix test
    
    https://bugzilla.gnome.org/show_bug.cgi?id=711751

 glib/tests/unix.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/glib/tests/unix.c b/glib/tests/unix.c
index 48dece9..273b4d4 100644
--- a/glib/tests/unix.c
+++ b/glib/tests/unix.c
@@ -183,6 +183,7 @@ nested_idle (gpointer data)
   source = g_unix_signal_source_new (SIGHUP);
   g_source_set_callback (source, on_sig_received, nested, NULL);
   g_source_attach (source, context);
+  g_source_unref (source);
 
   kill (getpid (), SIGHUP);
   g_main_loop_run (nested);


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