From 4252f6eb96ef00d5907dceda3af8c581917d7aa1 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 27 Jan 2012 20:23:03 +0100 Subject: optional exif support (build with exif=1), initial patch import --- src/filelist.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/filelist.c') diff --git a/src/filelist.c b/src/filelist.c index 522f3cc..32bc2a5 100644 --- a/src/filelist.c +++ b/src/filelist.c @@ -24,6 +24,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#ifdef HAVE_LIBEXIF +#include +#endif + #include "feh.h" #include "filelist.h" #include "options.h" @@ -65,6 +69,10 @@ void feh_file_free(feh_file * file) free(file->caption); if (file->info) feh_file_info_free(file->info); +#ifdef HAVE_LIBEXIF + if (file->info) + exif_data_unref(file->ed); +#endif free(file); return; } -- cgit v1.2.3