summaryrefslogtreecommitdiff
blob: 92fddcf1b8fe8decce38855069add1d2c5805826 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- plug-ins/common/png.c.orig	2006-06-15 19:45:07.000000000 +0200
+++ plug-ins/common/png.c	2006-06-15 19:45:51.000000000 +0200
@@ -1012,7 +1012,7 @@
    * Done with the file...
    */
 
-  png_read_destroy (pp, info, NULL);
+  png_destroy_read_struct(&pp, &info, NULL);
 
   g_free (pixel);
   g_free (pixels);
@@ -1441,7 +1441,7 @@
     };
 
   png_write_end (pp, info);
-  png_write_destroy (pp);
+  png_destroy_write_struct(&pp, &info);
 
   g_free (pixel);
   g_free (pixels);