1 Index: sources/gtk+2.0-2.12.12/gdk-pixbuf/io-png.c
2 ===================================================================
3 --- gdk-pixbuf/io-png.c 2009-07-15 18:28:39.000000000 +0530
4 +++ gdk-pixbuf/io-png.c 2009-07-16 02:10:44.000000000 +0530
9 -#ifdef PNG_USER_MEM_SUPPORTED
10 - png_ptr = png_create_read_struct_2 (PNG_LIBPNG_VER_STRING,
11 +// Temp. fix [15/07/09 18:30:19 Kirtika B Ruchandani <kirtibr@gmail.com>]
12 +// Usage of png_create_read_struct_2 creates run-time problems
13 +/*#ifdef PNG_USER_MEM_SUPPORTED
14 + png_ptr = png_create_read_struct_2 (PNG_LIBPNG_VER_STRING,
16 png_simple_error_callback,
17 png_simple_warning_callback,
23 png_ptr = png_create_read_struct (PNG_LIBPNG_VER_STRING,
25 png_simple_error_callback,
26 png_simple_warning_callback);
34 /* Create the main PNG context struct */
36 -#ifdef PNG_USER_MEM_SUPPORTED
37 +/*#ifdef PNG_USER_MEM_SUPPORTED
38 lc->png_read_ptr = png_create_read_struct_2 (PNG_LIBPNG_VER_STRING,
39 - lc, /* error/warning callback data */
48 lc->png_read_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING,
49 lc, /* error/warning callback data */
51 png_warning_callback);
54 if (lc->png_read_ptr == NULL) {
56 /* error callback should have set the error */