diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-07-31 17:57:04 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-07-31 22:23:35 -0400 |
commit | 9f24b54786d8371f77f9ba0c4475ed82b2e0e68f (patch) | |
tree | 8ac32783559f12897ce4e5bbc350ed8aab77e67e /gtk/gtkfilechooserdialog.c | |
parent | 9dd2645c4a591e154c2e1fe9e6bd5677c56e928a (diff) | |
download | gtk+-9f24b54786d8371f77f9ba0c4475ed82b2e0e68f.tar.gz |
Code cleanup
Use g_slist_free_full more consistently. This commit just converts
the obvious cases where g_slist_forall is directly followed by
g_slist_free.
Diffstat (limited to 'gtk/gtkfilechooserdialog.c')
-rw-r--r-- | gtk/gtkfilechooserdialog.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkfilechooserdialog.c b/gtk/gtkfilechooserdialog.c index 66ed07123c..3f3cf507f8 100644 --- a/gtk/gtkfilechooserdialog.c +++ b/gtk/gtkfilechooserdialog.c @@ -424,8 +424,7 @@ file_chooser_widget_selection_changed (GtkWidget *widget, sensitive = (uris != NULL); gtk_widget_set_sensitive (button, sensitive); - if (uris) - g_slist_free_full (uris, g_free); + g_slist_free_full (uris, g_free); } static void |