diff src/view_dir.c @ 1656:349ebc02b8e2

fixed leak in file_util_* functions - file_util_* are changed to take over the filelist and free it when done - make sure that these functions are called correctly
author nadvornik
date Sat, 20 Jun 2009 18:42:23 +0000
parents cc3ccf3c7c27
children fa942b3f0ef5
line wrap: on
line diff
--- a/src/view_dir.c	Sat Jun 20 16:46:32 2009 +0000
+++ b/src/view_dir.c	Sat Jun 20 18:42:23 2009 +0000
@@ -822,11 +822,13 @@
 				{
 				file_util_copy_simple(list, fd->path, vd->widget);
 				done = TRUE;
+				list = NULL;
 				}
 			else if (context->actions == GDK_ACTION_MOVE)
 				{
 				file_util_move_simple(list, fd->path, vd->widget);
 				done = TRUE;
+				list = NULL;
 				}
 			}