X-Git-Url: https://git.0d.be/?p=empathy.git;a=blobdiff_plain;f=ubuntu-online-accounts%2Fcc-plugins%2Faccount-plugins%2Fempathy-accounts-plugin-widget.c;fp=ubuntu-online-accounts%2Fcc-plugins%2Faccount-plugins%2Fempathy-accounts-plugin-widget.c;h=34729960c52a464f55a463f28d20447305f324d7;hp=f76eb5cd42c4b6ada91a0b4e63959a996d22ebdd;hb=6a5b51b273fc447c7611675b97268fc99216d430;hpb=57b261b8329e12d1ffcc46e7ecfbeca2caa8fb4b diff --git a/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-widget.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-widget.c index f76eb5cd..34729960 100644 --- a/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-widget.c +++ b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-widget.c @@ -310,7 +310,7 @@ manager_prepared_cb (GObject *source, goto out; } - accounts = tp_account_manager_get_valid_accounts (manager); + accounts = tp_account_manager_dup_valid_accounts (manager); while (accounts != NULL) { TpAccount *account = accounts->data; @@ -328,7 +328,7 @@ manager_prepared_cb (GObject *source, accounts = g_list_delete_link (accounts, accounts); } - g_list_free (accounts); + g_list_free_full (accounts, g_object_unref); out: tp_weak_ref_destroy (wr);