Fix memory leak

This commit is contained in:
Benau 2018-06-04 11:12:11 +08:00
parent e326d7bcfd
commit ec51a2dfbb

View File

@ -482,6 +482,7 @@ XMLNode *FileManager::createXMLTreeFromString(const std::string & content)
io::IXMLReader * reader = m_file_system->createXMLReader(ireadfile);
XMLNode* node = new XMLNode(reader);
reader->drop();
ireadfile->drop();
return node;
}
catch (std::runtime_error& e)