mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
mainloop-test: Fix leaks in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711751
This commit is contained in:
parent
83a14d13ec
commit
ae1764b4e0
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user