[Problem] xmlCleanupParser should be called only before program exit.
[Solution] Moved to global object constructor.
[Verification] Successfull compilation
Change-Id: Id2fedd8b99c9b598eaef14f7c12d37282e74814a
namespace CKM {
namespace XML {
+namespace {
+
+struct LibXmlCleanup {
+ ~LibXmlCleanup() { xmlCleanupParser(); }
+} cleanup;
+
+} // namespace anonymous
+
Parser::Parser(const std::string &XML_filename)
: m_errorCb(0)
{
}
Parser::~Parser()
{
- xmlCleanupParser();
}
int Parser::Validate(const std::string &XSD_schema)