Added the JPEG2000 memory leak fix to decode.c

This commit is contained in:
Josh Ware 2014-08-26 13:34:44 +10:00 committed by wiredfool
parent 5ca57520b6
commit 3acb06e9d2

View File

@ -103,6 +103,8 @@ PyImaging_DecoderNew(int contextsize)
static void
_dealloc(ImagingDecoderObject* decoder)
{
if (decoder->cleanup)
decoder->cleanup(&decoder->state);
free(decoder->state.buffer);
free(decoder->state.context);
Py_XDECREF(decoder->lock);