[glib] asyncqueue-test: Fix leaks in tests



commit 9a67fb903f394fc884fbacd2f54392632db2b898
Author: Stef Walter <stefw gnome org>
Date:   Sat Nov 9 20:25:07 2013 +0100

    asyncqueue-test: Fix leaks in tests
    
    https://bugzilla.gnome.org/show_bug.cgi?id=711751

 tests/asyncqueue-test.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/tests/asyncqueue-test.c b/tests/asyncqueue-test.c
index cc598de..84d7810 100644
--- a/tests/asyncqueue-test.c
+++ b/tests/asyncqueue-test.c
@@ -237,5 +237,9 @@ main (int argc, char *argv[])
   main_loop = g_main_loop_new (NULL, FALSE);
   g_main_loop_run (main_loop);
 
+  g_main_loop_unref (main_loop);
+  g_thread_pool_free (thread_pool, TRUE, TRUE);
+  g_async_queue_unref (async_queue);
+
   return EXIT_SUCCESS;
 }


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