Lines 149-155
static unsigned char *ReadPng (FILE *pfF
Link Here
|
149 |
png_destroy_read_struct (&png_ptr, NULL, NULL); |
149 |
png_destroy_read_struct (&png_ptr, NULL, NULL); |
150 |
return NULL; |
150 |
return NULL; |
151 |
} |
151 |
} |
152 |
if (setjmp (png_ptr->jmpbuf)) |
152 |
if (setjmp (png_jmpbuf(png_ptr))) |
153 |
{ |
153 |
{ |
154 |
/* Free all of the memory associated with the png_ptr and info_ptr */ |
154 |
/* Free all of the memory associated with the png_ptr and info_ptr */ |
155 |
png_destroy_read_struct (&png_ptr, &info_ptr, (png_infopp)NULL); |
155 |
png_destroy_read_struct (&png_ptr, &info_ptr, (png_infopp)NULL); |
Lines 858-864
ThotBool SavePng (const char *filename,
Link Here
|
858 |
png_destroy_write_struct(&png, (png_infopp) NULL); |
858 |
png_destroy_write_struct(&png, (png_infopp) NULL); |
859 |
return FALSE; |
859 |
return FALSE; |
860 |
} |
860 |
} |
861 |
if (setjmp(png->jmpbuf)) |
861 |
if (setjmp(png_jmpbuf(png))) |
862 |
{ |
862 |
{ |
863 |
png_destroy_write_struct(&png, &pngInfo); |
863 |
png_destroy_write_struct(&png, &pngInfo); |
864 |
TtaWriteClose (pngFile); |
864 |
TtaWriteClose (pngFile); |