asyncqueue-test: Fix leaks in tests
authorStef Walter <stefw@gnome.org>
Sat, 9 Nov 2013 19:25:07 +0000 (20:25 +0100)
committerStef Walter <stefw@gnome.org>
Sun, 10 Nov 2013 21:40:58 +0000 (22:40 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=711751

tests/asyncqueue-test.c

index cc598de..84d7810 100644 (file)
@@ -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;
 }