summaryrefslogtreecommitdiff
path: root/sendto/caja-sendto-command.c
diff options
context:
space:
mode:
Diffstat (limited to 'sendto/caja-sendto-command.c')
-rw-r--r--sendto/caja-sendto-command.c3
1 files changed, 1 insertions, 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;
}