diff options
Diffstat (limited to 'www/amaya/patches')
-rw-r--r-- | www/amaya/patches/patch-ae | 22 |
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 */ |