g_slist_foreach (addresses, (GFunc) g_free, NULL);
g_slist_free (addresses);
}
- if (contacts) {
- g_list_foreach (contacts, (GFunc) g_object_unref, NULL);
+ if (contacts)
g_list_free (contacts);
- }
}
}
}
- g_list_foreach (resolved_contacts, (GFunc)g_object_unref, NULL);
g_list_free (resolved_contacts);
clean_check_names_banner (info);
roster = (OssoABookAggregator *) osso_abook_aggregator_get_default (NULL);
contacts = osso_abook_aggregator_find_contacts_for_email_address (roster, email);
if (!contacts) {
- g_printerr ("modest: failed to get contacts: %s",
- err ? err->message : "<unknown>");
if (err)
g_error_free (err);
g_free (email);
return FALSE;
}
- result = (contacts != NULL);
if (contacts) {
- g_list_foreach (contacts, (GFunc)g_object_unref, NULL);
g_list_free (contacts);
+ result = TRUE;
}
g_free (email);