Mathias Fröhlich a écrit : > Hi Maik, > > On Friday 05 January 2007 11:16, Maik Justus wrote: > >> sometimes I get a segfault in function >> SGShaderAnimation::~SGShaderAnimation(), file >> simgear/scene/model/shadanim.cxx. >> >> Please commit the attached patch. >> > The patch you have attached is a noop. you can safely delete a zero pointer > according to the standard. > If you have problems here we have probably a very different problem that just > shows up here. I don't think that it is a good idea to do it in this way ... >
If the proposed patch cures the problem, that means that objects are deleted more than once, because the only useful thing is to set pointers to zero after the first destruction. It usually happens when we explicitely delete a smart pointer ( after a conversion from pointer real where this was valid ) -Fred -- Frédéric Bouvier http://frfoto.free.fr Photo gallery - album photo http://www.fotolia.fr/p/2278 Other photo gallery http://fgsd.sourceforge.net/ FlightGear Scenery Designer ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Flightgear-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/flightgear-devel

