telepathy-mission-control: mcd_storage_get_accounts: use (transfer none)

Simon McVittie smcv at kemper.freedesktop.org
Thu Jan 30 04:34:42 PST 2014


Module: telepathy-mission-control
Branch: master
Commit: eabc50ba0c875f356adc2fc6f4008721309005ec
URL:    http://cgit.freedesktop.org/telepathy/telepathy-mission-control/commit/?id=eabc50ba0c875f356adc2fc6f4008721309005ec

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Fri Nov 15 13:20:29 2013 +0000

mcd_storage_get_accounts: use (transfer none)

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=27727

---

 src/mcd-account-manager.c |    2 --
 src/mcd-storage.c         |    4 ++--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/mcd-account-manager.c b/src/mcd-account-manager.c
index 2af47c0..6a7b816 100644
--- a/src/mcd-account-manager.c
+++ b/src/mcd-account-manager.c
@@ -1528,8 +1528,6 @@ _mcd_account_manager_setup (McdAccountManager *account_manager)
         g_object_unref (account);
     }
 
-    g_hash_table_unref (accounts);
-
     uncork_storage_plugins (account_manager);
 
     migrate_accounts (account_manager);
diff --git a/src/mcd-storage.c b/src/mcd-storage.c
index 35eaed5..77fd7b2 100644
--- a/src/mcd-storage.c
+++ b/src/mcd-storage.c
@@ -536,13 +536,13 @@ mcd_storage_load (McdStorage *self)
  * @storage: An object implementing the #McdStorage interface
  * @n: place for the number of accounts to be written to (or %NULL)
  *
- * Returns: (transfer container) (element-type utf8 Mcp.AccountStorage): a
+ * Returns: (transfer none) (element-type utf8 Mcp.AccountStorage): a
  *  map from account object path tail to plugin
  */
 GHashTable *
 mcd_storage_get_accounts (McdStorage *self)
 {
-  return g_hash_table_ref (self->accounts);
+  return self->accounts;
 }
 
 /*



More information about the telepathy-commits mailing list