From 3c44261b446a0fda563617771e03833034c94e8e Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Mon, 27 Feb 2012 08:05:51 -0600 Subject: [PATCH] [libpng14] Removed png_free() of unused png_ptr->current_text from pngread.c. --- ANNOUNCE | 1 + CHANGES | 1 + pngread.c | 6 ------ 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/ANNOUNCE b/ANNOUNCE index 9afe603d3..3e7bcc6c4 100644 --- a/ANNOUNCE +++ b/ANNOUNCE @@ -39,6 +39,7 @@ version 1.4.10beta01 [February 27, 2011] the string terminators (Franke Busse). version 1.4.10beta02 [February 27, 2012] + Removed the png_free() of unused png_ptr->current_text from pngread.c. Send comments/corrections/commendations to glennrp at users.sourceforge.net or to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/CHANGES b/CHANGES index b67cc8351..8da25a43c 100644 --- a/CHANGES +++ b/CHANGES @@ -2853,6 +2853,7 @@ version 1.4.10beta01 [February 27, 2011] the string terminators (Franke Busse). version 1.4.10beta02 [February 27, 2012] + Removed the png_free() of unused png_ptr->current_text from pngread.c. Send comments/corrections/commendations to glennrp at users.sourceforge.net or to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/pngread.c b/pngread.c index 2c7c7b535..2b74afbed 100644 --- a/pngread.c +++ b/pngread.c @@ -1133,12 +1133,6 @@ png_read_destroy(png_structp png_ptr, png_infop info_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 */ - /* Save the important info out of the png_struct, in case it is * being used again. */