summaryrefslogtreecommitdiff
path: root/x11/kdelibs4/patches/patch-khtml_imload_decoders_gifloader.cpp
blob: 900576c7ff8bbe0bc5c5497060160cf235f1fd0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$NetBSD: patch-khtml_imload_decoders_gifloader.cpp,v 1.1 2014/05/18 12:27:51 markd Exp $

Fix build with giflib 5.1.

--- khtml/imload/decoders/gifloader.cpp.orig	2014-01-02 19:26:52.000000000 +0000
+++ khtml/imload/decoders/gifloader.cpp
@@ -369,7 +369,7 @@ public:
         
         if (DGifSlurp(file) == GIF_ERROR)
         {
-            DGifCloseFile(file);
+            DGifCloseFile(file, NULL);
             return Error;
         }
         
@@ -378,7 +378,7 @@ public:
         if (file->ImageCount > 1) {
             // Verify it..
             if (!ImageManager::isAcceptableSize(file->SWidth, file->SHeight)) {
-                DGifCloseFile(file);
+                DGifCloseFile(file, NULL);
                 return Error;
             }
             notifyImageInfo(file->SWidth, file->SHeight);
@@ -390,7 +390,7 @@ public:
             //Extract colormap, geometry, so that we can create the frame
             SavedImage* curFrame = &file->SavedImages[frame];
             if (!ImageManager::isAcceptableSize(curFrame->ImageDesc.Width, curFrame->ImageDesc.Height)) {
-                DGifCloseFile(file);
+                DGifCloseFile(file, NULL);
                 return Error;
             }
         }
@@ -574,7 +574,7 @@ public:
             frame0->animProvider = new GIFAnimProvider(frame0, image, frameProps, bgColor);
         }
         
-        DGifCloseFile(file);
+        DGifCloseFile(file, NULL);
 
         return Done;
     }