From c64d748d59bd58af206553823598c191e7237b19 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 26 Nov 2020 10:11:02 +0100 Subject: caja-sendto-command: use g_list_free_full --- sendto/caja-sendto-command.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sendto/caja-sendto-command.c b/sendto/caja-sendto-command.c index 8ebf81d..41e44ce 100644 --- a/sendto/caja-sendto-command.c +++ b/sendto/caja-sendto-command.c @@ -315,8 +315,7 @@ send_button_cb (GtkWidget *widget, NS_ui *ui) g_free (f); } else { if (!p->info->send_files (p, w, file_list)) { - g_list_foreach (file_list, (GFunc) g_free, NULL); - g_list_free (file_list); + g_list_free_full (file_list, g_free); file_list = NULL; return; } -- cgit v1.2.1