diff options
author | Daniel Friesel <derf@finalrewind.org> | 2012-01-27 20:23:03 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2012-01-27 20:23:03 +0100 |
commit | 4252f6eb96ef00d5907dceda3af8c581917d7aa1 (patch) | |
tree | 7850c29f32d7bbb2be61d865b2900f24c7d54eb7 /src/filelist.c | |
parent | f32e4f8b3876b5cf063b92fa8988a7bda3672795 (diff) |
optional exif support (build with exif=1), initial patch import
Diffstat (limited to 'src/filelist.c')
-rw-r--r-- | src/filelist.c | 8 |
1 files changed, 8 insertions, 0 deletions
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 <libexif/exif-data.h> +#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; } |