From ee6b6575a8f62ccdb3efbf6a639fe3dbbe1e4ff6 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 26 Nov 2020 10:19:39 +0100 Subject: ev-document-factory: use g_list_free_full --- libdocument/ev-document-factory.c | 3 +-- 1 file changed, 1 insertion(+), 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")); -- cgit v1.2.1