summaryrefslogtreecommitdiff
path: root/graphics/imlib/patches/patch-ak
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/imlib/patches/patch-ak')
-rw-r--r--graphics/imlib/patches/patch-ak36
1 files changed, 35 insertions, 1 deletions
diff --git a/graphics/imlib/patches/patch-ak b/graphics/imlib/patches/patch-ak
index 2753c4b7d5e..2995ee1f2be 100644
--- a/graphics/imlib/patches/patch-ak
+++ b/graphics/imlib/patches/patch-ak
@@ -1,4 +1,4 @@
-$NetBSD: patch-ak,v 1.3 2014/05/22 11:50:41 obache Exp $
+$NetBSD: patch-ak,v 1.4 2014/05/30 11:34:01 joerg Exp $
* Fixes build with giflib>=5
@@ -47,3 +47,37 @@ $NetBSD: patch-ak,v 1.3 2014/05/22 11:50:41 obache Exp $
rec = TERMINATE_RECORD_TYPE;
}
*w = gif->Image.Width;
+@@ -62,13 +72,13 @@ loader_gif(FILE *f, int *w, int *h, int
+ rows = malloc(*h * sizeof(GifRowType *));
+ if (!rows)
+ {
+- DGifCloseFile(gif);
++ DGifCloseFile(gif, NULL);
+ return NULL;
+ }
+ data = _gdk_malloc_image(*w, *h);
+ if (!data)
+ {
+- DGifCloseFile(gif);
++ DGifCloseFile(gif, NULL);
+ free(rows);
+ return NULL;
+ }
+@@ -79,7 +89,7 @@ loader_gif(FILE *f, int *w, int *h, int
+ rows[i] = malloc(*w * sizeof(GifPixelType));
+ if (!rows[i])
+ {
+- DGifCloseFile(gif);
++ DGifCloseFile(gif, NULL);
+ for (i = 0; i < *h; i++)
+ if (rows[i])
+ free(rows[i]);
+@@ -168,7 +178,7 @@ loader_gif(FILE *f, int *w, int *h, int
+ }
+ }
+ }
+- DGifCloseFile(gif);
++ DGifCloseFile(gif, NULL);
+ for (i = 0; i < *h; i++)
+ free(rows[i]);
+ free(rows);