Skip to content

Commit

Permalink
Fixed memory leak in processing XML with paste button
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgammon committed Jun 23, 2010
1 parent e6f42e5 commit cb3a144
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dialogs/world_prefs/genpropertypage.cpp
Expand Up @@ -954,10 +954,11 @@ CString strContents;
{
iCount = m_doc->Load_World_XML (ar, m_iMask | XML_NO_PLUGINS);
}
catch (CArchiveException* )
catch (CArchiveException* e)
{
::TMessageBox ("There was a problem parsing the XML on the clipboard. "
"See the error window for more details");
e->Delete ();
}

if (iCount == 0)
Expand Down

0 comments on commit cb3a144

Please sign in to comment.