[packages/pslib] - updated giflib patch for giflib 5.1 - rel 7
baggins
baggins at pld-linux.org
Mon Nov 10 08:05:20 CET 2014
commit 5155a7567d06f1c60262fbcf6f07235e926f1575
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Nov 10 08:04:56 2014 +0100
- updated giflib patch for giflib 5.1
- rel 7
pslib-giflib.patch | 27 +++++++++++++++++++++++++++
pslib.spec | 2 +-
2 files changed, 28 insertions(+), 1 deletion(-)
---
diff --git a/pslib.spec b/pslib.spec
index 497f70c..c59b4e2 100644
--- a/pslib.spec
+++ b/pslib.spec
@@ -2,7 +2,7 @@ Summary: The pslib C-library to create PostScript on the fly
Summary(pl.UTF-8): Biblioteka do generowania w locie plików PostScript
Name: pslib
Version: 0.4.5
-Release: 6
+Release: 7
License: LGPL v2+
Group: Libraries
Source0: http://downloads.sourceforge.net/pslib/%{name}-%{version}.tar.gz
diff --git a/pslib-giflib.patch b/pslib-giflib.patch
index ebd167a..cb1739b 100644
--- a/pslib-giflib.patch
+++ b/pslib-giflib.patch
@@ -16,3 +16,30 @@
fclose(fp);
return(0);
}
+@@ -4939,7 +4939,7 @@
+
+ if(NULL == (psimage->palette = psdoc->malloc(psdoc, sizeof(PSColor) * numcolors, _("Allocate memory for color palette.")))) {
+ ps_error(psdoc, PS_MemoryError, _("Could not allocate memory for color palette."));
+- DGifCloseFile(gft);
++ DGifCloseFile(gft, NULL);
+ psdoc->free(psdoc, psimage);
+ fclose(fp);
+ return(0);
+@@ -4964,7 +4964,7 @@
+ psimage->length = psimage->width * psimage->height;
+ if(NULL == (psimage->data = psdoc->malloc(psdoc, psimage->length, _("Allocate memory for image data.")))) {
+ ps_error(psdoc, PS_MemoryError, _("Could not allocate memory for image data."));
+- DGifCloseFile(gft);
++ DGifCloseFile(gft, NULL);
+ psdoc->free(psdoc, psimage->palette);
+ psdoc->free(psdoc, psimage);
+ fclose(fp);
+@@ -4998,7 +4998,7 @@
+ memcpy(psimage->data, dataptr, psimage->length);
+ }
+
+- DGifCloseFile(gft);
++ DGifCloseFile(gft, NULL);
+
+ } else
+ #endif /* HAVE_LIBGIF */
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/pslib.git/commitdiff/5155a7567d06f1c60262fbcf6f07235e926f1575
More information about the pld-cvs-commit
mailing list