aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2014-05-31 11:04:39 +0200
committerBert Münnich <ber.t@posteo.de>2014-05-31 11:04:39 +0200
commit0f7b26d33d29b9654ccf3c80a8bd5e57720cfcc1 (patch)
tree0ea288309c7f825bc9328a9613d509df4824393f
parent7a74fae56a800e10fd34cd1e172b040e2a41f61d (diff)
parentb901236261dc717dc08ed10f63e2d5cd3f3031f8 (diff)
Merge branch 'barthalion/master'
-rw-r--r--image.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/image.c b/image.c
index e62a69f..7eec544 100644
--- a/image.c
+++ b/image.c
@@ -278,7 +278,11 @@ bool img_load_gif(img_t *img, const fileinfo_t *file)
}
} while (rec != TERMINATE_RECORD_TYPE);
+#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5 && GIFLIB_MINOR >= 1
+ DGifCloseFile(gif, NULL);
+#else
DGifCloseFile(gif);
+#endif
if (err && !file->loaded)
warn("corrupted gif file: %s", file->name);