RCS file: /cvs/gnome/gimp/plug-ins/common/png.c,v
retrieving revision 1.118
retrieving revision 1.118.2.1
diff -u -r1.118 -r1.118.2.1
|
|
|
1 | 1 | /* |
2 | | * "$Id: png.c,v 1.118 2004/11/23 14:28:43 mitch Exp $" |
| 2 | * "$Id: png.c,v 1.118.2.1 2006/04/23 07:01:47 yosh Exp $" |
3 | 3 | * |
4 | 4 | * Portable Network Graphics (PNG) plug-in for The GIMP -- an image |
5 | 5 | * manipulation program |
… |
… |
|
1012 | 1012 | * Done with the file... |
1013 | 1013 | */ |
1014 | 1014 | |
| 1015 | #if PNG_LIBPNG_VER > 99 |
| 1016 | png_destroy_read_struct (&pp, &info, NULL); |
| 1017 | #else |
1015 | 1018 | png_read_destroy (pp, info, NULL); |
| 1019 | #endif |
1016 | 1020 | |
1017 | 1021 | g_free (pixel); |
1018 | 1022 | g_free (pixels); |
… |
… |
|
1441 | 1445 | }; |
1442 | 1446 | |
1443 | 1447 | png_write_end (pp, info); |
| 1448 | |
| 1449 | #if PNG_LIBPNG_VER > 99 |
| 1450 | png_destroy_write_struct (&pp, &info); |
| 1451 | #else |
1444 | 1452 | png_write_destroy (pp); |
| 1453 | #endif |
1445 | 1454 | |
1446 | 1455 | g_free (pixel); |
1447 | 1456 | g_free (pixels); |