summaryrefslogtreecommitdiff
path: root/telepathy-logger/log-store-pidgin.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-09-23 16:24:17 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-09-25 11:00:48 +0200
commitb4e924942d3090ad9df1d0443bfa98cccaf6680e (patch)
tree7ebfa6a6efd99a64a168ce75eee6d6ed6823cc87 /telepathy-logger/log-store-pidgin.c
parent0f3c1d3f1df18d6d6d1533cc1d4656ff64607fb0 (diff)
downloadtelepathy-logger-b4e924942d3090ad9df1d0443bfa98cccaf6680e.tar.gz
stop using tp_account_manager_get_valid_accounts()
The code example in log-walker.c was wrong as get_valid_accounts() is (transfer container). dup_valid_accounts() is (transfer full) so it's correct now. https://bugs.freedesktop.org/show_bug.cgi?id=69797
Diffstat (limited to 'telepathy-logger/log-store-pidgin.c')
-rw-r--r--telepathy-logger/log-store-pidgin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/telepathy-logger/log-store-pidgin.c b/telepathy-logger/log-store-pidgin.c
index a76c066..f3e46b8 100644
--- a/telepathy-logger/log-store-pidgin.c
+++ b/telepathy-logger/log-store-pidgin.c
@@ -488,7 +488,7 @@ log_store_pidgin_dup_account (const gchar *filename)
gboolean is_irc;
account_manager = tp_account_manager_dup ();
- accounts = tp_account_manager_get_valid_accounts (account_manager);
+ accounts = tp_account_manager_dup_valid_accounts (account_manager);
strv = g_strsplit (filename, G_DIR_SEPARATOR_S, -1);
len = g_strv_length (strv);
@@ -532,7 +532,7 @@ log_store_pidgin_dup_account (const gchar *filename)
g_free (username);
g_free (server);
- g_list_free (accounts);
+ g_list_free_full (accounts, g_object_unref);
g_strfreev (strv);
g_object_unref (account_manager);