summaryrefslogtreecommitdiff
path: root/libdocument/ev-document-factory.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-11-26 10:19:39 +0100
committerraveit65 <[email protected]>2020-12-04 21:52:41 +0100
commitee6b6575a8f62ccdb3efbf6a639fe3dbbe1e4ff6 (patch)
tree05b9117493211e47816b35dec135aa5871350693 /libdocument/ev-document-factory.c
parentcfa0ac2e0ec0a4c9dd7476487898bbac403d7b19 (diff)
downloadatril-ee6b6575a8f62ccdb3efbf6a639fe3dbbe1e4ff6.tar.bz2
atril-ee6b6575a8f62ccdb3efbf6a639fe3dbbe1e4ff6.tar.xz
ev-document-factory: use g_list_free_full
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"));