Mercurial > geeqie
diff 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 |
line wrap: on
line diff
--- a/src/search.c Sat Jun 20 16:46:32 2009 +0000 +++ b/src/search.c Sat Jun 20 18:42:23 2009 +0000 @@ -662,11 +662,7 @@ static void search_result_edit_selected(SearchData *sd, const gchar *key) { - GList *list; - - list = search_result_selection_list(sd); - file_util_start_editor_from_filelist(key, list, NULL, sd->window); - filelist_free(list); + file_util_start_editor_from_filelist(key, search_result_selection_list(sd), NULL, sd->window); } static void search_result_collection_from_selection(SearchData *sd)