summaryrefslogtreecommitdiff
path: root/libdocument/ev-document-factory.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdocument/ev-document-factory.c')
-rw-r--r--libdocument/ev-document-factory.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libdocument/ev-document-factory.c b/libdocument/ev-document-factory.c
index b1454c64..82286829 100644
--- a/libdocument/ev-document-factory.c
+++ b/libdocument/ev-document-factory.c
@@ -384,8 +384,7 @@ ev_document_factory_add_filters (GtkWidget *chooser, EvDocument *document)
}
}
- g_list_foreach (all_types, (GFunc)g_free, NULL);
- g_list_free (all_types);
+ g_list_free_full (all_types, g_free);
filter = gtk_file_filter_new ();
gtk_file_filter_set_name (filter, _("All Files"));