More testing...

This commit is contained in:
Josh Ware 2014-08-27 19:30:19 +10:00 committed by wiredfool
parent 9ccc930784
commit e4e1f5c2d4

View File

@ -576,13 +576,13 @@ int
ImagingJpeg2KEncodeCleanup(ImagingCodecState state) {
JPEG2KENCODESTATE *context = (JPEG2KENCODESTATE *)state->context;
if (context->quality_layers)
Py_DECREF(context->quality_layers);
//if (context->quality_layers)
// Py_DECREF(context->quality_layers);
if (context->error_msg)
free ((void *)context->error_msg);
//if (context->error_msg)
// free ((void *)context->error_msg);
context->error_msg = NULL;
//context->error_msg = NULL;
//if (context->encoder)
// ImagingIncrementalCodecDestroy(context->encoder);