summaryrefslogtreecommitdiff
path: root/pngwutil.c
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2012-08-09 22:24:04 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2012-08-09 22:24:04 -0500
commit4430b913635ad977fd11ee1bc196e8660ff5e9fe (patch)
treeea8ac680a48abff62bbc9acb2e5a9c8d46c55e2d /pngwutil.c
parentdff6f4c4f06f655309783673f3ec5ce7d4d03810 (diff)
downloadlibpng-4430b913635ad977fd11ee1bc196e8660ff5e9fe.tar.gz
[libpng16] Restore info_ptr members that were deleted by the previous
patch; they are needed by png_set_IHDR() for both read and write. Fix some ifdefs that caused the contrib/pngminim/ applications to not compile.
Diffstat (limited to 'pngwutil.c')
-rw-r--r--pngwutil.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pngwutil.c b/pngwutil.c
index f9cb950b7..c475745dd 100644
--- a/pngwutil.c
+++ b/pngwutil.c
@@ -1033,8 +1033,10 @@ png_compress_IDAT(png_structrp png_ptr, png_const_bytep input,
png_ptr->zbuffer_list->next = NULL;
}
+#ifdef PNG_WRITE_COMPRESSED_TEXT_SUPPORTED
else
png_free_buffer_list(png_ptr, &png_ptr->zbuffer_list->next);
+#endif
/* It is a terminal error if we can't claim the zstream. */
if (png_deflate_claim(png_ptr, png_IDAT, png_image_size(png_ptr)) != Z_OK)