aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-accounts-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/empathy-accounts-common.c')
-rw-r--r--src/empathy-accounts-common.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/empathy-accounts-common.c b/src/empathy-accounts-common.c
index 7550c7183..d975c55b0 100644
--- a/src/empathy-accounts-common.c
+++ b/src/empathy-accounts-common.c
@@ -51,7 +51,7 @@ empathy_accounts_has_non_salut_accounts (TpAccountManager *manager)
gboolean ret = FALSE;
GList *accounts, *l;
- accounts = tp_account_manager_get_valid_accounts (manager);
+ accounts = tp_account_manager_dup_valid_accounts (manager);
for (l = accounts ; l != NULL; l = g_list_next (l))
{
@@ -62,7 +62,7 @@ empathy_accounts_has_non_salut_accounts (TpAccountManager *manager)
}
}
- g_list_free (accounts);
+ g_list_free_full (accounts, g_object_unref);
return ret;
}
@@ -73,9 +73,9 @@ empathy_accounts_has_accounts (TpAccountManager *manager)
GList *accounts;
gboolean has_accounts;
- accounts = tp_account_manager_get_valid_accounts (manager);
+ accounts = tp_account_manager_dup_valid_accounts (manager);
has_accounts = (accounts != NULL);
- g_list_free (accounts);
+ g_list_free_full (accounts, g_object_unref);
return has_accounts;
}