Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed incorrect call to ThrowWriterException.
  • Loading branch information
dlemstra committed Jun 6, 2021
1 parent 8d78773 commit f2a0b40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coders/jxl.c
Expand Up @@ -254,15 +254,15 @@ static Image *ReadJXLImage(const ImageInfo *image_info,ExceptionInfo *exception)
if (runner == (void *) NULL)
{
JxlDecoderDestroy(decoder);
ThrowWriterException(CoderError,"MemoryAllocationFailed");
ThrowReaderException(CoderError,"MemoryAllocationFailed");
}
decoder_status=JxlDecoderSetParallelRunner(decoder,JxlThreadParallelRunner,
runner);
if (decoder_status != JXL_DEC_SUCCESS)
{
JxlThreadParallelRunnerDestroy(runner);
JxlDecoderDestroy(decoder);
ThrowWriterException(CoderError,"MemoryAllocationFailed");
ThrowReaderException(CoderError,"MemoryAllocationFailed");
}
events_wanted=JXL_DEC_BASIC_INFO;
if (image_info->ping == MagickFalse)
Expand Down

0 comments on commit f2a0b40

Please sign in to comment.