[libpng15] Only mark text chunks as written after successfully writing them.

This commit is contained in:
Glenn Randers-Pehrson
2014-11-06 07:56:34 -06:00
parent d0885f09af
commit 023ff22642
3 changed files with 16 additions and 14 deletions

View File

@@ -750,7 +750,7 @@ void write_png(char *file_name /* , ... other image information ... */)
*/
/* Once we write out the header, the compression type on the text
* chunks gets changed to PNG_TEXT_COMPRESSION_NONE_WR or
* chunk gets changed to PNG_TEXT_COMPRESSION_NONE_WR or
* PNG_TEXT_COMPRESSION_zTXt_WR, so it doesn't get written out again
* at the end.
*/