diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-04-07 11:14:45 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-04-08 11:11:36 +0200 |
commit | e89d3d8aad6aea1737f2ed7c5ddae6c18d85bbaa (patch) | |
tree | b61494cb786a5be70944699333ddae59d8976f56 | |
parent | 96bfaf2da10fa7e8dc73590e68dca6b927a637a7 (diff) |
feh_file_info_preload: free feh_file data structure when removing list items
Conflicts:
ChangeLog
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | src/filelist.c | 4 |
2 files changed, 10 insertions, 2 deletions
@@ -1,6 +1,12 @@ +git HEAD + + * Handle missing HOME in environment + * Fix memory leak when a slideshow contains many unloadable images + * Fix memory leak when --prelaod removes files from the filelist + Thu, 15 May 2014 23:41:07 +0200 Daniel Friesel <derf+feh@finalrewind.org> -* Releasev v2.12 +* Release v2.12 * feh-cam and gen-cam-menu are no longer installed by default. Use 'make install cam=1' to install them or 'make uninstall cam=1 && make install cam=0' to remove them permanently diff --git a/src/filelist.c b/src/filelist.c index b1a369a..d8aa1e3 100644 --- a/src/filelist.c +++ b/src/filelist.c @@ -332,8 +332,10 @@ gib_list *feh_file_info_preload(gib_list * list) feh_display_status(0); if (remove_list) { - for (l = remove_list; l; l = l->next) + for (l = remove_list; l; l = l->next) { + feh_file_free(FEH_FILE(((gib_list *) l->data)->data)); filelist = list = gib_list_remove(list, (gib_list *) l->data); + } gib_list_free(remove_list); } |