Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed memory leak on loading state files

  • Loading branch information...
commit 7b35548febc9f44cbf65db0ddaa93ef7b56a5c09 1 parent f1b12cc
@nickgammon authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  xml/xml_load_world.cpp
View
3  xml/xml_load_world.cpp
@@ -2342,10 +2342,11 @@ void CMUSHclientDoc::Load_Plugin_XML (CXMLelement & parent)
} // end of not archive
} // end of try
- catch(CFileException*)
+ catch(CFileException* e)
{
// silently ignore no state file :)
// HandleLoadException ("plugin state file not found, assuming empty", e);
+ e->Delete ();
}
catch(CException*)
Please sign in to comment.
Something went wrong with that request. Please try again.