From: Václav Slavík Date: Fri, 23 Nov 2001 19:38:32 +0000 (+0000) Subject: fixed memory leak in imagjpeG (patch #484865) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/717510eb58c5c58f0ae9dabf1f4279d91109a4e7 fixed memory leak in imagjpeG (patch #484865) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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;