Merge "Track libxml2 API changes." am: 3096c58650

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2089706

Change-Id: If0afe5b65cf36d252118f1306c594d806710c402
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Sadaf Ebrahimi
2022-05-11 22:55:55 +00:00
committed by Automerger Merge Worker

View File

@@ -63,11 +63,8 @@ struct Libxml2Global {
xmlSetGenericErrorFunc(this, errorCb);
}
~Libxml2Global() {
// TODO: check if all those cleanup are needed
xmlSetGenericErrorFunc(nullptr, nullptr);
xmlSchemaCleanupTypes();
xmlCleanupParser();
xmlCleanupThreads();
}
const std::string& getErrors() { return errors; }