mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 06:26:15 +01:00
gdbus-connection-slow: Fix leak in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711802
This commit is contained in:
parent
0d51ff79ed
commit
f80e2695e1
@ -215,6 +215,8 @@ int
|
|||||||
main (int argc,
|
main (int argc,
|
||||||
char *argv[])
|
char *argv[])
|
||||||
{
|
{
|
||||||
|
gint ret;
|
||||||
|
|
||||||
g_test_init (&argc, &argv, NULL);
|
g_test_init (&argc, &argv, NULL);
|
||||||
|
|
||||||
/* all the tests rely on a shared main loop */
|
/* all the tests rely on a shared main loop */
|
||||||
@ -224,5 +226,8 @@ main (int argc,
|
|||||||
|
|
||||||
g_test_add_func ("/gdbus/connection/flush", test_connection_flush);
|
g_test_add_func ("/gdbus/connection/flush", test_connection_flush);
|
||||||
g_test_add_func ("/gdbus/connection/large_message", test_connection_large_message);
|
g_test_add_func ("/gdbus/connection/large_message", test_connection_large_message);
|
||||||
return g_test_run();
|
|
||||||
|
ret = g_test_run();
|
||||||
|
g_main_loop_unref (loop);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user