We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c5b1e4 commit f0232a2Copy full SHA for f0232a2
coders/png.c
@@ -4782,10 +4782,11 @@ static Image *ReadOneJNGImage(MngInfo *mng_info,
4782
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
4783
" Copying JDAT chunk data to color_blob.");
4784
4785
- (void) WriteBlob(color_image,length,chunk);
4786
-
4787
if (length != 0)
4788
- chunk=(unsigned char *) RelinquishMagickMemory(chunk);
+ {
+ (void) WriteBlob(color_image,length,chunk);
+ chunk=(unsigned char *) RelinquishMagickMemory(chunk);
4789
+ }
4790
4791
continue;
4792
}
0 commit comments