13
0

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:
Carl Hetherington 2010-03-25 01:24:59 +00:00
parent 2726184f42
commit 896aa29dcf

View File

@ -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;
} }