From: cristy Date: Wed, 26 Oct 2011 16:55:01 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~6737 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a9a6ec4bd4a223a2c1640b574d82e82e0e278a25;p=imagemagick --- 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);