[glib/wip/gcleanup: 35/79] child-test: Fix leak in test



commit 582187f1a0c7ba9f6e04d6343069cf03bde56f12
Author: Stef Walter <stefw gnome org>
Date:   Sat Nov 9 20:25:23 2013 +0100

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

 tests/child-test.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tests/child-test.c b/tests/child-test.c
index 5478b6f..ad055b2 100644
--- a/tests/child-test.c
+++ b/tests/child-test.c
@@ -189,6 +189,8 @@ main (int argc, char *argv[])
   
   g_main_loop_run (main_loop);
 
+  g_main_loop_unref (main_loop);
+
   if (alive > 0)
     {
       g_warning ("%d children still alive\n", alive);


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