[next] telepathy-glib: account-request test: assert that TpAccountRequest is not leaked

Simon McVittie smcv at kemper.freedesktop.org
Tue Mar 18 05:45:06 PDT 2014


Module: telepathy-glib
Branch: next
Commit: 0e1dd195bfd543ab543586a863ac7c459be0be53
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=0e1dd195bfd543ab543586a863ac7c459be0be53

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Mon Mar 17 15:40:29 2014 +0000

account-request test: assert that TpAccountRequest is not leaked

---

 tests/dbus/account-request.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/dbus/account-request.c b/tests/dbus/account-request.c
index 136a3d0..0f83eeb 100644
--- a/tests/dbus/account-request.c
+++ b/tests/dbus/account-request.c
@@ -72,7 +72,7 @@ teardown (Test *test,
   if (test->result != NULL)
     tp_tests_assert_last_unref (&test->result);
 
-  g_clear_object (&test->ar);
+  tp_tests_assert_last_unref (&test->ar);
 
   /* If we don't let it prepare before we tear down the AccountManager
    * service, then it might be invalidated between teardown and the next



More information about the telepathy-commits mailing list