mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 02:16:19 +03:00
Prevent multiple calls to ImagingIncrementalCodecDestroy
This commit is contained in:
parent
7db19efe75
commit
b78e5444f4
|
@ -800,6 +800,9 @@ ImagingJpeg2KDecodeCleanup(ImagingCodecState state) {
|
||||||
if (context->decoder)
|
if (context->decoder)
|
||||||
ImagingIncrementalCodecDestroy(context->decoder);
|
ImagingIncrementalCodecDestroy(context->decoder);
|
||||||
|
|
||||||
|
/* Prevent multiple calls to ImagingIncrementalCodecDestroy */
|
||||||
|
context->decoder = NULL;
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user