Skip to content

Commit

Permalink
Fixed memory leak if error importing XML
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgammon committed Jun 17, 2010
1 parent 9d0a93b commit e26eeb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dialogs/ImportXMLdlg.cpp
Expand Up @@ -237,10 +237,11 @@ void CImportXMLdlg::ImportArchive (CArchive & ar)
::TMessageBox ("Not in XML format");

} // end of try block
catch (CArchiveException* )
catch (CArchiveException* e)
{
::TMessageBox ("There was a problem parsing the XML. "
"See the error window for more details");
e->Delete ();

}
} // end of CImportXMLdlg::ImportArchive
Expand Down

0 comments on commit e26eeb6

Please sign in to comment.