[glib] child-test: Fix leak in test



commit ba56c7b720a88ba096a3325c03457dab9088b3b8
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]