Works, but has a memory leak in check_enabled_accounts:
tp_account_manager_dup_valid_accounts returns a list of reffed TpAccounts. Instead of using g_list_free, the returned list should be freed with
g_list_free_full (account_list, g_object_unref)
to unref the contained accounts.
Also, the `g_list_free (account_service_list)` can be removed, it doesn't free anything (account_service_list is NULL after the loop has run through).
Thanks!
« Back to merge proposal
Works, but has a memory leak in check_enabled_ accounts:
tp_account_ manager_ dup_valid_ accounts returns a list of reffed TpAccounts. Instead of using g_list_free, the returned list should be freed with
g_list_free_full (account_list, g_object_unref)
to unref the contained accounts.
Also, the `g_list_free (account_ service_ list)` can be removed, it doesn't free anything (account_ service_ list is NULL after the loop has run through).
Thanks!