mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
gdbus-auth: Fix leaks in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711802
This commit is contained in:
parent
2ad121ab16
commit
db6a297d9e
@ -198,6 +198,9 @@ test_auth_mechanism (const gchar *allowed_client_mechanism,
|
||||
|
||||
g_thread_join (client_thread);
|
||||
|
||||
while (g_main_context_iteration (NULL, FALSE));
|
||||
g_main_loop_unref (loop);
|
||||
|
||||
g_object_unref (server);
|
||||
}
|
||||
|
||||
@ -271,6 +274,7 @@ temp_dbus_keyrings_teardown (void)
|
||||
g_dir_close (dir);
|
||||
g_assert (rmdir (temp_dbus_keyrings_dir) == 0);
|
||||
|
||||
g_free (temp_dbus_keyrings_dir);
|
||||
temp_dbus_keyrings_dir = NULL;
|
||||
g_unsetenv ("G_DBUS_COOKIE_SHA1_KEYRING_DIR");
|
||||
g_unsetenv ("G_DBUS_COOKIE_SHA1_KEYRING_DIR_IGNORE_PERMISSION");
|
||||
|
Loading…
Reference in New Issue
Block a user