gtk/*: Use g_list_free_full() convenience function

This commit is contained in:
Javier Jardón
2012-01-02 04:20:59 +01:00
parent 6ad6f719c6
commit d005b01319
21 changed files with 37 additions and 87 deletions

View File

@ -820,8 +820,7 @@ shortcuts_free (GtkFileChooserDefault *impl)
static void
pending_select_files_free (GtkFileChooserDefault *impl)
{
g_slist_foreach (impl->pending_select_files, (GFunc) g_object_unref, NULL);
g_slist_free (impl->pending_select_files);
g_slist_free_full (impl->pending_select_files, g_object_unref);
impl->pending_select_files = NULL;
}