Hi Fred,
no, it only helped to comment out the whole delete statement. I have to 
check, if it was due to a local bug.
Maik
Frederic Bouvier schrieb am 15.01.2007 20:40:
> 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
>
>   


-------------------------------------------------------------------------
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
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to