summaryrefslogtreecommitdiff
path: root/www/amaya/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2006-04-20 22:54:53 +0000
committerwiz <wiz@pkgsrc.org>2006-04-20 22:54:53 +0000
commit1d80156c8a881df9f0ac626df5f2bc9454b2d4e4 (patch)
tree4e7018af3317e8d81e77e68700b5930f9f4df47e /www/amaya/patches
parent6c573635e0af3b6b91ac3894dfcba95954e1b58a (diff)
downloadpkgsrc-1d80156c8a881df9f0ac626df5f2bc9454b2d4e4.tar.gz
Fix build after png update.
While here, do pkglint cleanup. Bump PKGREVISION.
Diffstat (limited to 'www/amaya/patches')
-rw-r--r--www/amaya/patches/patch-ae22
1 files changed, 22 insertions, 0 deletions
diff --git a/www/amaya/patches/patch-ae b/www/amaya/patches/patch-ae
new file mode 100644
index 00000000000..1ac97dde403
--- /dev/null
+++ b/www/amaya/patches/patch-ae
@@ -0,0 +1,22 @@
+$NetBSD: patch-ae,v 1.9 2006/04/20 22:54:53 wiz Exp $
+
+--- ../thotlib/image/pnghandler.c.orig 2005-05-31 11:50:35.000000000 +0200
++++ ../thotlib/image/pnghandler.c
+@@ -217,8 +217,6 @@ static unsigned char *ReadPng (FILE *pfF
+ png_read_end(png_ptr, NULL);
+ TtaFreeMemory (ppbRowPointers);
+ ppbRowPointers = NULL;
+- /* clean up after the read, and free any memory allocated */
+- png_read_destroy (png_ptr, info_ptr, (png_info*) NULL);
+ /* Free all of the memory associated with the png_ptr and info_ptr */
+ png_destroy_read_struct (&png_ptr, &info_ptr, (png_infopp)NULL);
+ return pixels;
+@@ -586,8 +584,6 @@ static unsigned char *ReadPng (FILE *inf
+ *bg = -1;
+ }
+
+- /* clean up after the read, and free any memory allocated */
+- png_read_destroy (png_ptr, info_ptr, (png_info*) NULL);
+ /* Free all of the memory associated with the png_ptr and info_ptr */
+ png_destroy_read_struct (&png_ptr, &info_ptr, (png_infopp)NULL);
+ /* free the structures */