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 /src/empathy-roster-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 'src/empathy-roster-window.c')
-rw-r--r-- | src/empathy-roster-window.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/empathy-roster-window.c b/src/empathy-roster-window.c index f0b30cf77..8ce915396 100644 --- a/src/empathy-roster-window.c +++ b/src/empathy-roster-window.c @@ -1507,7 +1507,7 @@ set_notebook_page (EmpathyRosterWindow *self) gtk_spinner_stop (GTK_SPINNER (self->priv->spinner_loading)); - accounts = tp_account_manager_get_valid_accounts ( + accounts = tp_account_manager_dup_valid_accounts ( self->priv->account_manager); len = g_list_length (accounts); @@ -1560,7 +1560,7 @@ set_notebook_page (EmpathyRosterWindow *self) display_page_contact_list (self); out: - g_list_free (accounts); + g_list_free_full (accounts, g_object_unref); } static void @@ -1636,7 +1636,8 @@ account_manager_prepared_cb (GObject *source_object, return; } - accounts = tp_account_manager_get_valid_accounts (self->priv->account_manager); + accounts = tp_account_manager_dup_valid_accounts ( + self->priv->account_manager); for (j = accounts; j != NULL; j = j->next) { TpAccount *account = TP_ACCOUNT (j->data); @@ -1655,7 +1656,7 @@ account_manager_prepared_cb (GObject *source_object, set_notebook_page (self); - g_list_free (accounts); + g_list_free_full (accounts, g_object_unref); } void |