Prevent multiple calls to ImagingIncrementalCodecDestroy