Mercurial > hg > release > icedtea7-forest-2.5 > jdk
changeset 8148:48dd8696b3cd
PR2200: Support giflib 5.1.0
Contributed-by: fridrich.strba@suse.com
author | andrew |
---|---|
date | Wed, 04 Feb 2015 18:20:43 +0000 |
parents | 4a66189bceb0 |
children | e6e82c628fe4 |
files | src/share/native/sun/awt/splashscreen/splashscreen_gif.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/native/sun/awt/splashscreen/splashscreen_gif.c Wed Feb 04 18:16:47 2015 +0000 +++ b/src/share/native/sun/awt/splashscreen/splashscreen_gif.c Wed Feb 04 18:20:43 2015 +0000 @@ -310,7 +310,14 @@ free(pBitmapBits); free(pOldBitmapBits); +#if GIFLIB_MAJOR >= 5 && GIFLIB_MINOR >= 1 + int error = 0; + DGifCloseFile(gif, &error); + if (error) + return 0; +#else DGifCloseFile(gif); +#endif return 1; }