diff --git a/src/io/file_manager.cpp b/src/io/file_manager.cpp index eb84db104..dd73f0f49 100644 --- a/src/io/file_manager.cpp +++ b/src/io/file_manager.cpp @@ -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)