Remove use of xmlCleanupParser as suggested in the libxml2 docs. Fixes #3047.
git-svn-id: svn://localhost/ardour2/branches/3.0@6793 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
2726184f42
commit
896aa29dcf
@ -95,7 +95,6 @@ XMLTree::read_internal(bool validate)
|
|||||||
if (validate && ctxt->valid == 0) {
|
if (validate && ctxt->valid == 0) {
|
||||||
xmlFreeParserCtxt(ctxt);
|
xmlFreeParserCtxt(ctxt);
|
||||||
xmlFreeDoc(doc);
|
xmlFreeDoc(doc);
|
||||||
xmlCleanupParser();
|
|
||||||
throw XMLException("Failed to validate document " + _filename);
|
throw XMLException("Failed to validate document " + _filename);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -107,7 +106,6 @@ XMLTree::read_internal(bool validate)
|
|||||||
xmlFreeParserCtxt(ctxt);
|
xmlFreeParserCtxt(ctxt);
|
||||||
}
|
}
|
||||||
xmlFreeDoc(doc);
|
xmlFreeDoc(doc);
|
||||||
xmlCleanupParser();
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user