Commit b59da43c authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

feh_file_info_preload: free feh_file data structure when removing list items

parent 7f9960fe
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@ git HEAD
      (sourcing it still works)
    * --max-dimension: ignore width/height limit of 0 pixels
    * 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>

+3 −1
Original line number Diff line number Diff line
@@ -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);
	}