diff src/collect-table.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 9a351e8f3b97
line wrap: on
line diff
--- a/src/collect-table.c	Sat Jun 20 16:46:32 2009 +0000
+++ b/src/collect-table.c	Sat Jun 20 18:42:23 2009 +0000
@@ -657,18 +657,12 @@
 {
 	CollectTable *ct;
 	const gchar *key = data;
-	GList *list;
 
 	ct = submenu_item_get_data(widget);
 
 	if (!ct) return;
 
-	list = collection_table_popup_file_list(ct);
-	if (list)
-		{
-		file_util_start_editor_from_filelist(key, list, NULL, ct->listview);
-		filelist_free(list);
-		}
+	file_util_start_editor_from_filelist(key, collection_table_popup_file_list(ct), NULL, ct->listview);
 }
 
 static void collection_table_popup_copy_cb(GtkWidget *widget, gpointer data)