diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-09-11 18:35:26 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-09-11 21:10:43 +0800 |
commit | 6a5b51b273fc447c7611675b97268fc99216d430 (patch) | |
tree | 1c3b87bd9aea1d122dbb829c6c3bcec831fed9c6 /libempathy-gtk/empathy-log-window.c | |
parent | 57b261b8329e12d1ffcc46e7ecfbeca2caa8fb4b (diff) | |
download | gsoc2013-empathy-6a5b51b273fc447c7611675b97268fc99216d430.tar gsoc2013-empathy-6a5b51b273fc447c7611675b97268fc99216d430.tar.gz gsoc2013-empathy-6a5b51b273fc447c7611675b97268fc99216d430.tar.bz2 gsoc2013-empathy-6a5b51b273fc447c7611675b97268fc99216d430.tar.lz gsoc2013-empathy-6a5b51b273fc447c7611675b97268fc99216d430.tar.xz gsoc2013-empathy-6a5b51b273fc447c7611675b97268fc99216d430.tar.zst gsoc2013-empathy-6a5b51b273fc447c7611675b97268fc99216d430.zip |
use tp_account_manager_dup_valid_accounts()
tp_account_manager_get_valid_accounts() has been deprecated.
Fix an accounts list leak in empathy-sanity-cleaning.
Diffstat (limited to 'libempathy-gtk/empathy-log-window.c')
-rw-r--r-- | libempathy-gtk/empathy-log-window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c index ff274a6aa..6a244f503 100644 --- a/libempathy-gtk/empathy-log-window.c +++ b/libempathy-gtk/empathy-log-window.c @@ -2499,7 +2499,7 @@ log_window_who_populate (EmpathyLogWindow *self) GList *accounts, *l; manager = empathy_account_chooser_get_account_manager (account_chooser); - accounts = tp_account_manager_get_valid_accounts (manager); + accounts = tp_account_manager_dup_valid_accounts (manager); for (l = accounts; l != NULL; l = l->next) { @@ -2510,7 +2510,7 @@ log_window_who_populate (EmpathyLogWindow *self) get_entities_for_account, ctx); } - g_list_free (accounts); + g_list_free_full (accounts, g_object_unref); } _tpl_action_chain_append (self->priv->chain, select_first_entity, self); _tpl_action_chain_start (self->priv->chain); |