diff --git a/ANNOUNCE b/ANNOUNCE index d04781da5..71408c499 100644 --- a/ANNOUNCE +++ b/ANNOUNCE @@ -66,8 +66,6 @@ Version 1.6.1beta04 [February 27, 2013] Version 1.6.1beta05 [March 2, 2013] Avoid a possible memory leak in contrib/gregbook/readpng.c - Fixed bug introduced in libpng-1.6.0beta28 that causes libpng to handle chunks - even when they have been tagged PNG_HANDLE_CHUNK_NEVER. Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/CHANGES b/CHANGES index 95da90d12..741e9fd87 100644 --- a/CHANGES +++ b/CHANGES @@ -4423,8 +4423,6 @@ Version 1.6.1beta04 [February 27, 2013] Version 1.6.1beta05 [March 2, 2013] Avoid a possible memory leak in contrib/gregbook/readpng.c - Fixed bug introduced in libpng-1.6.0beta28 that causes libpng to handle chunks - even when they have been tagged PNG_HANDLE_CHUNK_NEVER. Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/pngrutil.c b/pngrutil.c index ba451012d..10e097da4 100644 --- a/pngrutil.c +++ b/pngrutil.c @@ -2813,7 +2813,7 @@ png_handle_unknown(png_structrp png_ptr, png_inforp info_ptr, * the application has not set specific save or ignore for this * chunk or global save or ignore. */ - if (keep < PNG_HANDLE_CHUNK_NEVER) + if (keep < PNG_HANDLE_CHUNK_IF_SAFE) { # ifdef PNG_SET_UNKNOWN_CHUNKS_SUPPORTED if (png_ptr->unknown_default < PNG_HANDLE_CHUNK_IF_SAFE)