mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-23 07:36:16 +00:00
Fixed: Release libxml2 structures before exit
--HG-- branch : develop
This commit is contained in:
parent
09c99dd2c3
commit
c71f712d11
3 changed files with 11 additions and 2 deletions
|
@ -171,6 +171,11 @@ public:
|
||||||
*/
|
*/
|
||||||
static bool getContentString (std::string &result, xmlNodePtr node);
|
static bool getContentString (std::string &result, xmlNodePtr node);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Release meory used by libxml2, to only call before exit.
|
||||||
|
*/
|
||||||
|
static void releaseLibXml();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
/// From IStream
|
/// From IStream
|
||||||
|
|
|
@ -103,13 +103,11 @@ void CIXml::release ()
|
||||||
// Free it
|
// Free it
|
||||||
xmlClearParserCtxt (_Parser);
|
xmlClearParserCtxt (_Parser);
|
||||||
xmlFreeParserCtxt (_Parser);
|
xmlFreeParserCtxt (_Parser);
|
||||||
// commented due to the bug #857 xmlCleanupParser ();
|
|
||||||
|
|
||||||
_Parser = NULL;
|
_Parser = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Not initialized
|
// Not initialized
|
||||||
_Parser = NULL;
|
|
||||||
_CurrentElement = NULL;
|
_CurrentElement = NULL;
|
||||||
_CurrentNode = NULL;
|
_CurrentNode = NULL;
|
||||||
_PushBegin = false;
|
_PushBegin = false;
|
||||||
|
@ -1143,6 +1141,11 @@ bool CIXml::getContentString (std::string &result, xmlNodePtr node)
|
||||||
|
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
|
|
||||||
|
void CIXml::releaseLibXml()
|
||||||
|
{
|
||||||
|
xmlCleanupParser();
|
||||||
|
}
|
||||||
|
|
||||||
} // NLMISC
|
} // NLMISC
|
||||||
|
|
||||||
#endif // NL_DONT_USE_EXTERNAL_CODE
|
#endif // NL_DONT_USE_EXTERNAL_CODE
|
||||||
|
|
|
@ -664,6 +664,7 @@ void release()
|
||||||
NLGUI::CDBManager::release();
|
NLGUI::CDBManager::release();
|
||||||
CWidgetManager::release();
|
CWidgetManager::release();
|
||||||
CViewRenderer::release();
|
CViewRenderer::release();
|
||||||
|
CIXml::releaseLibXml();
|
||||||
|
|
||||||
#if FINAL_VERSION
|
#if FINAL_VERSION
|
||||||
// openURL ("http://www.ryzomcore.org/exit/");
|
// openURL ("http://www.ryzomcore.org/exit/");
|
||||||
|
|
Loading…
Reference in a new issue