diff src/dupe.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 58a5d1e01e33
children bfe04f01de5e
line wrap: on
line diff
--- a/src/dupe.c	Sat Jun 20 16:46:32 2009 +0000
+++ b/src/dupe.c	Sat Jun 20 18:42:23 2009 +0000
@@ -2042,13 +2042,7 @@
 
 static void dupe_window_edit_selected(DupeWindow *dw, const gchar *key)
 {
-	GList *list;
-
-	list = dupe_listview_get_selection(dw, dw->listview);
-
-	file_util_start_editor_from_filelist(key, list, NULL, dw->window);
-
-	filelist_free(list);
+	file_util_start_editor_from_filelist(key, dupe_listview_get_selection(dw, dw->listview), NULL, dw->window);
 }
 
 static void dupe_window_collection_from_selection(DupeWindow *dw)