[next] telepathy-glib: TpAccountManager test: make test->account a ref

Simon McVittie smcv at kemper.freedesktop.org
Thu May 3 07:34:43 PDT 2012


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

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Tue May  1 17:11:48 2012 +0100

TpAccountManager test: make test->account a ref

---

 tests/dbus/account-manager.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tests/dbus/account-manager.c b/tests/dbus/account-manager.c
index 41cebbf..ffad18f 100644
--- a/tests/dbus/account-manager.c
+++ b/tests/dbus/account-manager.c
@@ -216,6 +216,7 @@ teardown_service (Test *test,
 
   g_clear_object (&test->account1);
   g_clear_object (&test->account2);
+  g_clear_object (&test->account);
 
   test->service = NULL;
   teardown (test, data);
@@ -414,6 +415,7 @@ ensure_action (gpointer script_data,
   g_assert (tp_proxy_is_prepared (test->am, TP_ACCOUNT_MANAGER_FEATURE_CORE));
   test->account = tp_account_manager_ensure_account (test->am,
       path);
+  g_object_ref (test->account);
 
   script_continue (script_data);
 }



More information about the telepathy-commits mailing list