mainloop-test: Fix leaks in tests

https://bugzilla.gnome.org/show_bug.cgi?id=711751
This commit is contained in:
Stef Walter 2013-11-09 20:30:11 +01:00
parent 83a14d13ec
commit ae1764b4e0

View File

@ -190,6 +190,7 @@ adder_thread (gpointer data)
g_mutex_unlock (&context_array_mutex);
cleanup_crawlers (context);
g_main_context_unref (context);
return NULL;
}
@ -430,5 +431,8 @@ main (int argc,
g_main_loop_run (main_loop);
g_main_loop_unref (main_loop);
g_ptr_array_unref (crawler_array);
g_ptr_array_unref (context_array);
return 0;
}