Looking for cleanup segfault

This commit is contained in:
Josh Ware 2014-08-27 19:21:40 +10:00 committed by wiredfool
parent 7407371deb
commit 9ccc930784

6
libImaging/Jpeg2KEncode.c Normal file → Executable file
View File

@ -584,11 +584,11 @@ ImagingJpeg2KEncodeCleanup(ImagingCodecState state) {
context->error_msg = NULL;
if (context->encoder)
ImagingIncrementalCodecDestroy(context->encoder);
//if (context->encoder)
// ImagingIncrementalCodecDestroy(context->encoder);
/* Prevent multiple calls to ImagingIncrementalCodecDestroy */
context->encoder = NULL;
//context->encoder = NULL;
return -1;