Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Oct 5, 2023
1 parent 7ed78fd commit cb1cfd9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/xml/xmlparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ static void deinitXML() {
XMLParser::XMLParser(Common::ReadStream &stream, bool makeLower, const Common::UString &fileName) {
fprintf(stderr, "FOO1\n");
initXML();

BOOST_SCOPE_EXIT(void) {
fprintf(stderr, "FOO13\n");
deinitXML();
fprintf(stderr, "FOO14\n");
} BOOST_SCOPE_EXIT_END

fprintf(stderr, "FOO2\n");

//kParseError.clear();
Expand Down Expand Up @@ -121,9 +128,6 @@ XMLParser::XMLParser(Common::ReadStream &stream, bool makeLower, const Common::U

_rootNode.reset(new XMLNode(*root, makeLower));
fprintf(stderr, "FOO12\n");

deinitXML();
fprintf(stderr, "FOO13\n");
}

XMLParser::~XMLParser() {
Expand Down

0 comments on commit cb1cfd9

Please sign in to comment.