blob: 2e3cbca05b121774da6c002a53ce89e77c02707f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$NetBSD: patch-ac,v 1.6 2005/11/05 13:32:36 adrianp Exp $
--- lib/gifalloc.c.orig 2004-05-29 19:59:59.000000000 +0100
+++ lib/gifalloc.c
@@ -420,8 +420,10 @@ FreeSavedImages(GifFileType * GifFile) {
}
for (sp = GifFile->SavedImages;
sp < GifFile->SavedImages + GifFile->ImageCount; sp++) {
- if (sp->ImageDesc.ColorMap)
+ if (sp->ImageDesc.ColorMap) {
FreeMapObject(sp->ImageDesc.ColorMap);
+ sp->ImageDesc.ColorMap = NULL;
+ }
if (sp->RasterBits)
free((char *)sp->RasterBits);
|