diff options
Diffstat (limited to 'pluma/pluma-commands-file.c')
-rw-r--r-- | pluma/pluma-commands-file.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pluma/pluma-commands-file.c b/pluma/pluma-commands-file.c index 689398a6..2d7e9f31 100644 --- a/pluma/pluma-commands-file.c +++ b/pluma/pluma-commands-file.c @@ -296,8 +296,7 @@ load_uri_list (PlumaWindow *window, ret = load_file_list (window, files, encoding, line_pos, create); - g_slist_foreach (files, (GFunc) g_object_unref, NULL); - g_slist_free (files); + g_slist_free_full (files, g_object_unref); return ret; } @@ -433,8 +432,7 @@ open_dialog_response_cb (PlumaFileChooserDialog *dialog, encoding, 0); - g_slist_foreach (files, (GFunc) g_object_unref, NULL); - g_slist_free (files); + g_slist_free_full (files, g_object_unref); } void |