--- gimp-2.2.11/plug-ins/common/png.c 2004-11-23 15:28:43.000000000 +0100 +++ gimp-2.2.11/plug-ins/common/png.c 2006-09-25 20:55:38.000000000 +0200 @@ -1012,7 +1012,8 @@ * Done with the file... */ - png_read_destroy (pp, info, NULL); + png_destroy_read_struct(&pp, &info, NULL); + //png_read_destroy (pp, info, NULL); g_free (pixel); g_free (pixels); @@ -1441,7 +1442,8 @@ }; png_write_end (pp, info); - png_write_destroy (pp); + //png_write_destroy (pp); + png_destroy_write_struct(&pp, &info); g_free (pixel); g_free (pixels);