--- /dev/null
+--- ./src/imlib.c.org 2011-09-13 10:09:21.351470521 +0200
++++ ./src/imlib.c 2011-09-13 10:09:38.442241678 +0200
+@@ -151,13 +151,14 @@ int feh_load_image(Imlib_Image * im, feh
+ /* Http, no reload, slideshow. Let's keep this image on hand... */
+ free(file->filename);
+ file->filename = estrdup(tmpname);
++
++ if (!opt.keep_http)
++ add_file_to_rm_filelist(tmpname);
+ } else {
+ /* Don't cache the image if we're doing reload + http (webcams etc) */
+ if (!opt.keep_http)
+ unlink(tmpname);
+ }
+- if (!opt.keep_http)
+- add_file_to_rm_filelist(tmpname);
+ free(tmpname);
+ } else {
+ *im = imlib_load_image_with_error_return(file->filename, &err);
Summary(pl.UTF-8): Szybki program do przeglądania/indeksowania/montowania obrazów
Name: feh
Version: 1.16.1
-Release: 1
+Release: 2
License: BSD
Group: X11/Applications/Graphics
Source0: https://derf.homelinux.org/~derf/projects/feh/%{name}-%{version}.tar.bz2
# Source0-md5: 1bb080c7b0021db50884a52161251990
URL: http://feh.finalrewind.org/
Patch0: %{name}-install.patch
+Patch1: %{name}-non_memleak.patch
Source1: %{name}-bash-completion
BuildRequires: giblib-devel >= 1.2.4
BuildRequires: imlib2-devel >= 1.0.0
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%{__sed} -i "s,CFLAGS ?=.*,CFLAGS = %{rpmcflags}," config.mk
%build