Fix compatibility with newer libpng
This commit is contained in:
parent
d968f0ae33
commit
176ba28362
1 changed files with 2 additions and 2 deletions
|
@ -284,9 +284,9 @@ out:
|
||||||
/* cleanup */
|
/* cleanup */
|
||||||
if (png_ptr) {
|
if (png_ptr) {
|
||||||
if (info_ptr)
|
if (info_ptr)
|
||||||
png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL);
|
png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL);
|
||||||
else
|
else
|
||||||
png_destroy_read_struct(&png_ptr, png_infopp_NULL, png_infopp_NULL);
|
png_destroy_read_struct(&png_ptr, png_infopp_NULL, (png_infopp)NULL);
|
||||||
}
|
}
|
||||||
if (infile)
|
if (infile)
|
||||||
fclose(infile);
|
fclose(infile);
|
||||||
|
|
Loading…
Reference in a new issue