I don't have the original post in front of me but if I remember rightly,
just a couple of values from the object are needed for the throw.
Why not copy them to local vars, do the XML_ParserFree
and then the throw using the local vars?

Richard

On Tue September 13 2005 00:45, Erik Hofman wrote:
> Richard Harrison wrote:
> > 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).
>
> The problem is that the program doesn't return to the function after
> throwing an exception. I assume it's best to add the XML_ParserFree()
> function to atexit() somewhere.
>
> Erik
>
> _______________________________________________
> Flightgear-devel mailing list
> [email protected]
> http://mail.flightgear.org/mailman/listinfo/flightgear-devel
> 2f585eeea02e2c79d7b1d8c4963bae2d

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

Reply via email to