comparison src/search.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
comparison
equal deleted inserted replaced
1655:6600a2754e50 1656:349ebc02b8e2
660 search_status_update(sd); 660 search_status_update(sd);
661 } 661 }
662 662
663 static void search_result_edit_selected(SearchData *sd, const gchar *key) 663 static void search_result_edit_selected(SearchData *sd, const gchar *key)
664 { 664 {
665 GList *list; 665 file_util_start_editor_from_filelist(key, search_result_selection_list(sd), NULL, sd->window);
666
667 list = search_result_selection_list(sd);
668 file_util_start_editor_from_filelist(key, list, NULL, sd->window);
669 filelist_free(list);
670 } 666 }
671 667
672 static void search_result_collection_from_selection(SearchData *sd) 668 static void search_result_collection_from_selection(SearchData *sd)
673 { 669 {
674 CollectWindow *w; 670 CollectWindow *w;