blob: 8d9961135c884f6b04e40c2f4e40d55aafc1e897 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
$NetBSD: patch-ac,v 1.12 2006/04/18 20:24:48 tron Exp $
--- plug-ins/common/png.c.orig 2004-11-23 14:28:43.000000000 +0000
+++ plug-ins/common/png.c 2006-04-18 21:20:36.000000000 +0100
@@ -1012,7 +1012,11 @@
* Done with the file...
*/
+#if PNG_LIBPNG_VER > 88
+ png_destroy_read_struct(&pp, &info, NULL);
+#else
png_read_destroy (pp, info, NULL);
+#endif
g_free (pixel);
g_free (pixels);
@@ -1441,7 +1445,11 @@
};
png_write_end (pp, info);
+#if PNG_LIBPNG_VER > 88
+ png_destroy_write_struct(&pp, &info);
+#else
png_write_destroy (pp);
+#endif
g_free (pixel);
g_free (pixels);
|