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



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

    child-test: Fix leak in test

 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]