Mercurial > geeqie
comparison 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 |
comparison
equal
deleted
inserted
replaced
1655:6600a2754e50 | 1656:349ebc02b8e2 |
---|---|
989 */ | 989 */ |
990 | 990 |
991 static void layout_menu_edit_cb(GtkAction *action, gpointer data) | 991 static void layout_menu_edit_cb(GtkAction *action, gpointer data) |
992 { | 992 { |
993 LayoutWindow *lw = data; | 993 LayoutWindow *lw = data; |
994 GList *list; | |
995 const gchar *key = gtk_action_get_name(action); | 994 const gchar *key = gtk_action_get_name(action); |
996 | 995 |
997 if (!editor_window_flag_set(key)) | 996 if (!editor_window_flag_set(key)) |
998 layout_exit_fullscreen(lw); | 997 layout_exit_fullscreen(lw); |
999 | 998 |
1000 list = layout_selection_list(lw); | 999 file_util_start_editor_from_filelist(key, layout_selection_list(lw), layout_get_path(lw), lw->window); |
1001 file_util_start_editor_from_filelist(key, list, layout_get_path(lw), lw->window); | |
1002 filelist_free(list); | |
1003 } | 1000 } |
1004 | 1001 |
1005 #if 0 | 1002 #if 0 |
1006 static void layout_menu_edit_update(LayoutWindow *lw) | 1003 static void layout_menu_edit_update(LayoutWindow *lw) |
1007 { | 1004 { |