mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2024-12-22 12:48:51 +00:00
test-prompt: Fix GError leak
https://bugzilla.gnome.org/show_bug.cgi?id=756766
This commit is contained in:
parent
6fbfb64b17
commit
c8931ab6fc
@ -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 ();
|
||||
|
Loading…
Reference in New Issue
Block a user