Fised memory leak.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5649 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2010-07-05 23:00:41 +00:00
parent 6a51351181
commit 9d467210c5

View File

@@ -66,6 +66,11 @@ XMLNode::XMLNode(const std::string &filename)
/** Destructor. */
XMLNode::~XMLNode()
{
for(unsigned int i=0; i<m_nodes.size(); i++)
{
delete m_nodes[i];
}
m_nodes.clear();
} // ~XMLNode
// ----------------------------------------------------------------------------