]> git.pld-linux.org Git - packages/feh.git/blame - feh-non_memleak.patch
- rel.2 - non_memleak patch added. Fixes memory leak caused by
[packages/feh.git] / feh-non_memleak.patch
CommitLineData
9ae593bb
PG
1--- ./src/imlib.c.org 2011-09-13 10:09:21.351470521 +0200
2+++ ./src/imlib.c 2011-09-13 10:09:38.442241678 +0200
3@@ -151,13 +151,14 @@ int feh_load_image(Imlib_Image * im, feh
4 /* Http, no reload, slideshow. Let's keep this image on hand... */
5 free(file->filename);
6 file->filename = estrdup(tmpname);
7+
8+ if (!opt.keep_http)
9+ add_file_to_rm_filelist(tmpname);
10 } else {
11 /* Don't cache the image if we're doing reload + http (webcams etc) */
12 if (!opt.keep_http)
13 unlink(tmpname);
14 }
15- if (!opt.keep_http)
16- add_file_to_rm_filelist(tmpname);
17 free(tmpname);
18 } else {
19 *im = imlib_load_image_with_error_return(file->filename, &err);
This page took 0.078626 seconds and 4 git commands to generate.