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

This commit is contained in:
Glenn Randers-Pehrson
2014-10-05 13:45:38 -05:00
parent f56c00f050
commit a11cd84160
5 changed files with 19 additions and 6 deletions

View File

@@ -932,7 +932,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.
*/