Imported from libpng-1.0.7beta14.tar

This commit is contained in:
Glenn Randers-Pehrson
2000-05-17 17:39:34 -05:00
parent ec61c23d56
commit fc4a143ec6
42 changed files with 202 additions and 153 deletions

View File

@@ -566,7 +566,7 @@ void write_png(char *file_name /* , ... other image information ... */)
{
/* If we get here, we had a problem reading the file */
fclose(fp);
png_destroy_write_struct(&png_ptr, (png_infopp)info_ptr);
png_destroy_write_struct(&png_ptr, &info_ptr);
return;
}
@@ -762,7 +762,7 @@ void write_png(char *file_name /* , ... other image information ... */)
png_free(png_ptr, trans);
/* clean up after the write, and free any memory allocated */
png_destroy_write_struct(&png_ptr, (png_infopp)info_ptr);
png_destroy_write_struct(&png_ptr, &info_ptr);
/* close the file */
fclose(fp);