java-1.8.0-openjdk/java-1.8.0-openjdk-gilib-5.1.patch
2014-06-02 17:46:32 +04:00

15 lines
573 B
Diff

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;
}