In its JSBSim configuration there is a problem with easyxml.cxx in that it frees the parser before using it which is generally not a good thing.

i.e.

if (!input.good()) {
  XML_ParserFree(parser);
  throw sg_io_exception("Problem reading file",
                        sg_location(path,
                        XML_GetCurrentLineNumber(parser),
                        XML_GetCurrentColumnNumber(parser)),
                        "SimGear XML Parser");
    }

Surely the XML_ParserFree should be after the throw? (I appreciate this is 99% safe, but it probably isn't the way that things should be done).

--Richard

_______________________________________________
Flightgear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to