[glib/wip/gcleanup] gdbus-auth: Fix leaks in tests
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/gcleanup] gdbus-auth: Fix leaks in tests
- Date: Sun, 10 Nov 2013 21:38:28 +0000 (UTC)
commit 8adfd39929686082ab147abc5708863159fcc4cc
Author: Stef Walter <stefw gnome org>
Date: Sat Nov 9 20:20:50 2013 +0100
gdbus-auth: Fix leaks in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711802
gio/tests/gdbus-auth.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gio/tests/gdbus-auth.c b/gio/tests/gdbus-auth.c
index 0aba9ca..a61a667 100644
--- a/gio/tests/gdbus-auth.c
+++ b/gio/tests/gdbus-auth.c
@@ -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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]