]> git.0d.be Git - empathy.git/blobdiff - ubuntu-online-accounts/cc-plugins/app-plugin/empathy-app-plugin-widget.c
use tp_account_manager_dup_valid_accounts()
[empathy.git] / ubuntu-online-accounts / cc-plugins / app-plugin / empathy-app-plugin-widget.c
index d07982a3b6b2798be3b6c9af146c57deec2076e9..768f0965de6f5d9dff7b42aaa9913d8b66348e90 100644 (file)
@@ -195,7 +195,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;
@@ -219,7 +219,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);