Thoroughly deinitialise expat parsers before freeing them (#103)

## Summary

* Thoroughly deinitialise expat parsers before freeing them
* Spotted a few crashes when de-initing expat parsers
This commit is contained in:
Dave Allie
2025-12-22 17:16:39 +11:00
committed by GitHub
parent 6fe28da41b
commit f4491875ab
4 changed files with 40 additions and 4 deletions
@@ -16,6 +16,8 @@ bool ContainerParser::setup() {
ContainerParser::~ContainerParser() {
if (parser) {
XML_StopParser(parser, XML_FALSE); // Stop any pending processing
XML_SetElementHandler(parser, nullptr, nullptr); // Clear callbacks
XML_ParserFree(parser);
parser = nullptr;
}