From 2aa03ce7bd5f617fa6f6f3128254913b6fa75cbe Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 6 May 2022 14:27:56 -0700 Subject: [PATCH] Track libxml2 API changes. This function is now deprecated upstream, and their advice is to just not call it; xmlCleanupParser() will do this stuff anyway. Test: treehugger Change-Id: I38a80d1f77c1beb2c1c8088a9e0df3bb0cbd9496 --- audio/common/all-versions/test/utility/src/ValidateXml.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/audio/common/all-versions/test/utility/src/ValidateXml.cpp b/audio/common/all-versions/test/utility/src/ValidateXml.cpp index f111c011d9..4d6f003bc5 100644 --- a/audio/common/all-versions/test/utility/src/ValidateXml.cpp +++ b/audio/common/all-versions/test/utility/src/ValidateXml.cpp @@ -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; }