Merge branch 'barthalion/master'

This commit is contained in:
Bert Münnich 2014-05-31 11:04:39 +02:00
commit 0f7b26d33d
1 changed files with 4 additions and 0 deletions

View File

@ -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);