threadpool-test: Fix leaks in tests
authorStef Walter <stefw@gnome.org>
Sat, 9 Nov 2013 19:53:32 +0000 (20:53 +0100)
committerStef Walter <stefw@gnome.org>
Mon, 11 Nov 2013 16:37:48 +0000 (17:37 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=711751

tests/threadpool-test.c

index 71f8a68..1c8aa06 100644 (file)
@@ -457,6 +457,8 @@ 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 (idle_pool, FALSE, TRUE);
   return 0;
 }