From 717510eb58c5c58f0ae9dabf1f4279d91109a4e7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Fri, 23 Nov 2001 19:38:32 +0000 Subject: [PATCH] fixed memory leak in imagjpeG (patch #484865) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/imagjpeg.cpp | 1 + 1 file changed, 1 insertion(+) 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; -- 2.47.2