gsettings: remove long-deprecated "schema" property
[platform/upstream/glib.git] / tests / asyncqueue-test.c
index 588baa3..84d7810 100644 (file)
@@ -178,7 +178,6 @@ basic_tests (void)
 int 
 main (int argc, char *argv[])
 {
-#if defined(G_THREADS_ENABLED) && ! defined(G_THREADS_IMPL_NONE)
   gint   i;
   gint   max_threads = MAX_THREADS;
   gint   max_unused_threads = MAX_THREADS;
@@ -186,8 +185,6 @@ main (int argc, char *argv[])
   gint   sort_interval;
   gchar *msg G_GNUC_UNUSED;
 
-  g_thread_init (NULL);
-
   basic_tests ();
 
   PRINT_MSG (("creating async queue..."));
@@ -239,7 +236,10 @@ main (int argc, char *argv[])
 
   main_loop = g_main_loop_new (NULL, FALSE);
   g_main_loop_run (main_loop);
-#endif
+
+  g_main_loop_unref (main_loop);
+  g_thread_pool_free (thread_pool, TRUE, TRUE);
+  g_async_queue_unref (async_queue);
 
   return EXIT_SUCCESS;
 }