From 5408b613f895f5203dd313e3715889bc7970570b Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Mon, 27 Feb 2012 08:09:42 -0600 Subject: [PATCH] [libpng16] Removed unused "current_text" members of png_struct and the png_free() of png_ptr->current_text from pngread.c --- ANNOUNCE | 2 ++ CHANGES | 2 ++ pngread.c | 6 ------ 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ANNOUNCE b/ANNOUNCE index dcda7a500..ddc6e7c06 100644 --- a/ANNOUNCE +++ b/ANNOUNCE @@ -235,6 +235,8 @@ Version 1.6.0beta14 [February 27, 2012] Updated Makefile.in Version 1.6.0beta15 [February 27, 2012] + Removed unused "current_text" members of png_struct and the png_free() + of png_ptr->current_text from pngread.c Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/CHANGES b/CHANGES index 8563af9d2..01140b084 100644 --- a/CHANGES +++ b/CHANGES @@ -3987,6 +3987,8 @@ Version 1.6.0beta14 [February 27, 2012] Updated Makefile.in Version 1.6.0beta15 [February 27, 2012] + Removed unused "current_text" members of png_struct and the png_free() + of png_ptr->current_text from pngread.c Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/pngread.c b/pngread.c index 6db31efd1..732db506f 100644 --- a/pngread.c +++ b/pngread.c @@ -911,12 +911,6 @@ png_read_destroy(png_structrp png_ptr) png_free(png_ptr, png_ptr->save_buffer); #endif -#ifdef PNG_PROGRESSIVE_READ_SUPPORTED -#ifdef PNG_TEXT_SUPPORTED - png_free(png_ptr, png_ptr->current_text); -#endif /* PNG_TEXT_SUPPORTED */ -#endif /* PNG_PROGRESSIVE_READ_SUPPORTED */ - #ifdef PNG_UNKNOWN_CHUNKS_SUPPORTED png_free(png_ptr, png_ptr->unknown_chunk.data); #endif -- GitLab