From a9a6ec4bd4a223a2c1640b574d82e82e0e278a25 Mon Sep 17 00:00:00 2001 From: cristy Date: Wed, 26 Oct 2011 16:55:01 +0000 Subject: [PATCH] --- coders/tiff.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coders/tiff.c b/coders/tiff.c index 19348e4ba..c02fc0478 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -1101,6 +1101,7 @@ static Image *ReadTIFFImage(const ImageInfo *image_info, status=SetQuantumFormat(image,quantum_info,FloatingPointQuantumFormat); if (status == MagickFalse) { + quantum_info=DestroyQuantumInfo(quantum_info); TIFFClose(tiff); ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); } @@ -1656,6 +1657,7 @@ static Image *ReadTIFFImage(const ImageInfo *image_info, } SetQuantumImageType(image,quantum_type); next_tiff_frame: + quantum_info=DestroyQuantumInfo(quantum_info); if ((photometric == PHOTOMETRIC_LOGL) || (photometric == PHOTOMETRIC_MINISBLACK) || (photometric == PHOTOMETRIC_MINISWHITE)) @@ -1701,7 +1703,6 @@ static Image *ReadTIFFImage(const ImageInfo *image_info, if (status == MagickFalse) break; } - quantum_info=DestroyQuantumInfo(quantum_info); } while (status == MagickTrue); (void) TIFFSetWarningHandler(warning_handler); (void) TIFFSetErrorHandler(error_handler); -- 2.40.0