summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/dbus/account-request.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/dbus/account-request.c b/tests/dbus/account-request.c
index fe3981734..5eabe7909 100644
--- a/tests/dbus/account-request.c
+++ b/tests/dbus/account-request.c
@@ -68,6 +68,10 @@ static void
teardown (Test *test,
gconstpointer data G_GNUC_UNUSED)
{
+ /* holds a ref to the TpAccountRequest and to the TpAccount */
+ if (test->result != NULL)
+ tp_tests_assert_last_unref (&test->result);
+
g_clear_object (&test->ar);
/* If we don't let it prepare before we tear down the AccountManager
@@ -90,7 +94,6 @@ teardown (Test *test,
tp_clear_pointer (&test->mainloop, g_main_loop_unref);
g_clear_error (&test->error);
- g_clear_object (&test->result);
}
static void