[Pkg-telepathy-commits] [telepathy-mission-control-6] 204/280: mcd_storage_get_accounts: use (transfer none)

Simon McVittie smcv at debian.org
Thu Mar 27 20:07:24 UTC 2014


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian
in repository telepathy-mission-control-6.

commit 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;
 }
 
 /*

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/telepathy-mission-control-6.git



More information about the Pkg-telepathy-commits mailing list