[libsecret] test-prompt: Fix GError leak
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsecret] test-prompt: Fix GError leak
- Date: Mon, 19 Oct 2015 13:14:55 +0000 (UTC)
commit c8931ab6fc1ae0fd7112fa14aabb6a99d5f7f15c
Author: Christophe Fergeau <cfergeau redhat com>
Date: Sat Oct 17 21:50:41 2015 +0200
test-prompt: Fix GError leak
https://bugzilla.gnome.org/show_bug.cgi?id=756766
libsecret/test-prompt.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libsecret/test-prompt.c b/libsecret/test-prompt.c
index bc528fb..30c3c14 100644
--- a/libsecret/test-prompt.c
+++ b/libsecret/test-prompt.c
@@ -218,6 +218,7 @@ test_perform_fail (Test *test,
retval = secret_prompt_perform_sync (prompt, NULL, NULL, NULL, &error);
g_assert_error (error, G_DBUS_ERROR, G_DBUS_ERROR_NOT_SUPPORTED);
g_assert (retval == NULL);
+ g_clear_error (&error);
g_object_unref (prompt);
g_assert (prompt == NULL);
@@ -355,6 +356,7 @@ test_service_fail (Test *test,
g_assert_error (error, G_DBUS_ERROR, G_DBUS_ERROR_NOT_SUPPORTED);
g_assert (retval == NULL);
g_object_unref (result);
+ g_clear_error (&error);
/* Make sure everything completes */
egg_test_wait_idle ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]