Ticket #9050: png_fix.patch

File png_fix.patch, 957 bytes (added by vargol@…, 18 years ago)

fix for deprecated libpng API

  • png.c

    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
     
    11/*
    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 $"
    33 *
    44 *   Portable Network Graphics (PNG) plug-in for The GIMP -- an image
    55 *   manipulation program
     
    10121012   * Done with the file...
    10131013   */
    10141014
     1015#if PNG_LIBPNG_VER > 99
     1016  png_destroy_read_struct (&pp, &info, NULL);
     1017#else
    10151018  png_read_destroy (pp, info, NULL);
     1019#endif
    10161020
    10171021  g_free (pixel);
    10181022  g_free (pixels);
     
    14411445    };
    14421446
    14431447  png_write_end (pp, info);
     1448
     1449#if PNG_LIBPNG_VER > 99
     1450  png_destroy_write_struct (&pp, &info);
     1451#else
    14441452  png_write_destroy (pp);
     1453#endif
    14451454
    14461455  g_free (pixel);
    14471456  g_free (pixels);