mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
Fix certain minimal config builds
The removal of png_struct::row_buffer and png_struct::row_format from write builds configured without filter or transform support (respectively) wasn't complete; some of the png.c and pngwrite.c cleanup code needed to handle the potentially removed members. Signed-off-by: John Bowler <jbowler@acm.org>
This commit is contained in:
@@ -1147,8 +1147,10 @@ png_write_destroy(png_structrp png_ptr)
|
||||
|
||||
/* Free our memory. png_free checks NULL for us. */
|
||||
png_free_buffer_list(png_ptr, &png_ptr->zbuffer_list);
|
||||
#ifdef PNG_WRITE_FILTER_SUPPORTED
|
||||
png_free(png_ptr, png_ptr->row_buffer);
|
||||
png_ptr->row_buffer = NULL;
|
||||
#endif /* WRITE_FILTER */
|
||||
#ifdef PNG_TRANSFORM_MECH_SUPPORTED
|
||||
png_transform_free(png_ptr, &png_ptr->transform_list);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user