--- ming-0.4.5/src/blocks/gifdbl.c.orig 2010-10-10 09:19:23.000000000 +0200
+++ ming-0.4.5/src/blocks/gifdbl.c 2014-04-06 21:48:13.695395774 +0200
+@@ -69,7 +69,7 @@
+ unsigned char *bits;
+ unsigned char *data;
+ unsigned char *p;
+- int i, nColors, size, alpha, bgColor, alignedWidth, bytesPerColor;
++ int i, nColors, size, alpha, bgColor, alignedWidth, bytesPerColor, giferror;
+ unsigned long outsize;
+
+ if(DGifSlurp(file) != GIF_OK)
+@@ -203,7 +203,7 @@
+ }
+
+ /* Done! */
+- DGifCloseFile(file);
++ DGifCloseFile(file, &giferror);
+
+ result->data = malloc(outsize = (int)floor(size*1.01+12));
+
@@ -227,7 +227,7 @@ SWFDBLBitmapData newSWFDBLBitmapData_fro
SWFDBLBitmapData ret;
struct dbl_data gifdata;
/* data should now be available */
+@@ -189,7 +189,7 @@
+ }
+
+ /* Done! */
+- DGifCloseFile(file);
++ DGifCloseFile(file, &err);
+
+ *length = size;
+ return data;
--- ming-0.4.5/util/gif2mask.c.orig 2013-06-08 16:08:51.000000000 +0200
+++ ming-0.4.5/util/gif2mask.c 2014-04-06 21:59:20.702048538 +0200
@@ -13,10 +13,9 @@