diff -Naur jdk8.orig/jdk/src/share/native/sun/awt/splashscreen/splashscreen_gif.c jdk8/jdk/src/share/native/sun/awt/splashscreen/splashscreen_gif.c --- jdk8.orig/jdk/src/share/native/sun/awt/splashscreen/splashscreen_gif.c 2014-06-02 17:38:17.544451940 +0400 +++ jdk8/jdk/src/share/native/sun/awt/splashscreen/splashscreen_gif.c 2014-06-02 17:44:24.887734150 +0400 @@ -310,7 +310,11 @@ free(pBitmapBits); free(pOldBitmapBits); +#if GIFLIB_MAJOR * 100 + GIFLIB_MINOR >= 501 + DGifCloseFile(gif, NULL); +#else DGifCloseFile(gif); +#fi return 1; }