fixed memory leak in imagjpeG (patch #484865)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2001-11-23 19:38:32 +00:00
parent b5d6954b87
commit 717510eb58

View File

@@ -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;