Julian Foad writes: > The first thing globals->saveInitialState() does is "delete > initial_state;" but initial_state was initialised to 0 (i.e. a null > pointer) in the constructor. Is "delete p;" a synonym for "if (p) > delete p;" according to your compiler's manual? Is it according to > the current version of the C++ standard?
There are many, many places in FlightGear and SimGear where we delete a pointer without checking for 0 first -- that's been standard C++ for a long time (i.e. well before ANSI C++). I don't think even MSVC has a problem with it. All the best, David -- David Megginson [EMAIL PROTECTED] _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel