[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

@@ -1297,7 +1297,7 @@ png_set_compression_buffer_size(png_structrp png_ptr, png_size_t size)
}
# endif
#ifdef PNG_WRITE_COMPRESSED_TEXT_SUPPORTED
# ifdef PNG_WRITE_SUPPORTED
if (!(png_ptr->mode & PNG_IS_READ_STRUCT))
{
if (png_ptr->zowner != 0)