--- Amaya/thotlib/image/pnghandler.c.orig	2007-03-06 01:37:18.000000000 +0000
+++ Amaya/thotlib/image/pnghandler.c	2007-03-06 01:36:10.000000000 +0000
@@ -218,7 +218,7 @@ static unsigned char *ReadPng (FILE *pfF
     TtaFreeMemory (ppbRowPointers);
     ppbRowPointers = NULL; 
     /* clean up after the read, and free any memory allocated */
-    png_read_destroy (png_ptr, info_ptr, (png_info*) NULL);
+    // 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;
@@ -587,7 +587,7 @@ static unsigned char *ReadPng (FILE *inf
     }
 
   /* clean up after the read, and free any memory allocated */
-  png_read_destroy (png_ptr, info_ptr, (png_info*) NULL);
+  // 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 */
