[libpng16] Fix new leak when text compression is disabled.

This commit is contained in:
John Bowler
2012-08-10 10:46:45 -05:00
committed by Glenn Randers-Pehrson
parent 865e14fd32
commit 134c5761fa
4 changed files with 36 additions and 32 deletions

View File

@@ -872,9 +872,7 @@ png_write_destroy(png_structrp png_ptr)
deflateEnd(&png_ptr->zstream);
/* Free our memory. png_free checks NULL for us. */
#ifdef PNG_WRITE_COMPRESSED_TEXT_SUPPORTED
png_free_buffer_list(png_ptr, &png_ptr->zbuffer_list);
#endif
png_free(png_ptr, png_ptr->row_buf);
#ifdef PNG_WRITE_FILTER_SUPPORTED
png_free(png_ptr, png_ptr->prev_row);