37 lines
868 B
Diff
37 lines
868 B
Diff
diff -puNr gimp-2.2.11.orig/plug-ins/common/png.c gimp-2.2.11/plug-ins/common/png.c
|
|
--- gimp-2.2.11.orig/plug-ins/common/png.c 2004-11-23 15:28:43.000000000 +0100
|
|
+++ gimp-2.2.11/plug-ins/common/png.c 2006-04-15 12:15:58.000000000 +0200
|
|
@@ -1012,12 +1012,10 @@ load_image (const gchar *filename,
|
|
* Done with the file...
|
|
*/
|
|
|
|
- png_read_destroy (pp, info, NULL);
|
|
+ png_destroy_read_struct (&pp, &info, NULL);
|
|
|
|
g_free (pixel);
|
|
g_free (pixels);
|
|
- free (pp);
|
|
- free (info);
|
|
|
|
fclose (fp);
|
|
|
|
@@ -1441,7 +1439,7 @@ save_image (const gchar *filename,
|
|
};
|
|
|
|
png_write_end (pp, info);
|
|
- png_write_destroy (pp);
|
|
+ png_destroy_write_struct (&pp, &info);
|
|
|
|
g_free (pixel);
|
|
g_free (pixels);
|
|
@@ -1456,9 +1454,6 @@ save_image (const gchar *filename,
|
|
g_free (text);
|
|
}
|
|
|
|
- free (pp);
|
|
- free (info);
|
|
-
|
|
fclose (fp);
|
|
|
|
return (1);
|