diff --git a/src/common/imagjpeg.cpp b/src/common/imagjpeg.cpp index 1e8457fc9b..58ee909282 100644 --- a/src/common/imagjpeg.cpp +++ b/src/common/imagjpeg.cpp @@ -197,6 +197,7 @@ bool wxJPEGHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbos */ if (verbose) wxLogError(_("JPEG: Couldn't load - file is probably corrupted.")); + (cinfo.src->term_source) (&cinfo);; jpeg_destroy_decompress(&cinfo); if (image->Ok()) image->Destroy(); return FALSE;