We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3690a82 commit 3b0fe05Copy full SHA for 3b0fe05
coders/art.c
@@ -168,7 +168,10 @@ static Image *ReadARTImage(const ImageInfo *image_info,ExceptionInfo *exception)
168
pixels=(const unsigned char *) ReadBlobStream(image,length,
169
GetQuantumPixels(quantum_info),&count);
170
if (count != (ssize_t) length)
171
- ThrowReaderException(CorruptImageError,"UnableToReadImageData");
+ {
172
+ quantum_info=DestroyQuantumInfo(quantum_info);
173
+ ThrowReaderException(CorruptImageError,"UnableToReadImageData");
174
+ }
175
(void) ImportQuantumPixels(image,(CacheView *) NULL,quantum_info,
176
GrayQuantum,pixels,exception);
177
pixels=(const unsigned char *) ReadBlobStream(image,(size_t) (-(ssize_t)
0 commit comments