diff src/layout_util.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 9a081164e6e3
line wrap: on
line diff
--- a/src/layout_util.c	Sat Jun 20 16:46:32 2009 +0000
+++ b/src/layout_util.c	Sat Jun 20 18:42:23 2009 +0000
@@ -991,15 +991,12 @@
 static void layout_menu_edit_cb(GtkAction *action, gpointer data)
 {
 	LayoutWindow *lw = data;
-	GList *list;
 	const gchar *key = gtk_action_get_name(action);
 	
 	if (!editor_window_flag_set(key))
 		layout_exit_fullscreen(lw);
 
-	list = layout_selection_list(lw);
-	file_util_start_editor_from_filelist(key, list, layout_get_path(lw), lw->window);
-	filelist_free(list);
+	file_util_start_editor_from_filelist(key, layout_selection_list(lw), layout_get_path(lw), lw->window);
 }
 
 #if 0