Prevent multiple calls to ImagingIncrementalCodecDestroy

This commit is contained in:
Josh Ware 2014-08-27 00:01:20 +10:00 committed by wiredfool
parent 7db19efe75
commit b78e5444f4

View File

@ -800,6 +800,9 @@ ImagingJpeg2KDecodeCleanup(ImagingCodecState state) {
if (context->decoder)
ImagingIncrementalCodecDestroy(context->decoder);
/* Prevent multiple calls to ImagingIncrementalCodecDestroy */
context->decoder = NULL;
return -1;
}