[next] telepathy-glib: account-request: don' t leak the intermediate result in test_create_fail

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


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

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

account-request: don't leak the intermediate result in test_create_fail

---

 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 5eabe79..136a3d0 100644
--- a/tests/dbus/account-request.c
+++ b/tests/dbus/account-request.c
@@ -536,7 +536,7 @@ test_create_fail (Test *test,
   g_assert (account == NULL);
 
   g_clear_error (&test->error);
-  test->result = NULL;
+  tp_tests_assert_last_unref (&test->result);
 
   /* now let's unset the fail=yes and make sure it works */
 



More information about the telepathy-commits mailing list