Skip to content

Commit f0232a2

Browse files
author
Dirk Lemstra
committed
Fixed incorrect call to WriteBlob reported in #490.
1 parent 0c5b1e4 commit f0232a2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: coders/png.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -4782,10 +4782,11 @@ static Image *ReadOneJNGImage(MngInfo *mng_info,
47824782
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
47834783
" Copying JDAT chunk data to color_blob.");
47844784

4785-
(void) WriteBlob(color_image,length,chunk);
4786-
47874785
if (length != 0)
4788-
chunk=(unsigned char *) RelinquishMagickMemory(chunk);
4786+
{
4787+
(void) WriteBlob(color_image,length,chunk);
4788+
chunk=(unsigned char *) RelinquishMagickMemory(chunk);
4789+
}
47894790

47904791
continue;
47914792
}

0 commit comments

Comments
 (0)