What' about an GCC option to handle pointers properly, and reset to zero after delete. It's a question of course...<br><br>Gilles Caulier<br><br><div class="gmail_quote">2011/6/15 Andi Clemens <span dir="ltr"><<a href="mailto:andi.clemens@gmx.net">andi.clemens@gmx.net</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Yes we changed your scenario, too.<br>
But we also changed the code I described before. Maybe this is longer than<br>
a few months ago, maybe 2 years.<br>
I know that I always added<br>
xyz = 0;<br>
to my code before, but then it was removed again because it is not<br>
neccessary with modern compilers (I don't know who said that).<br>
<br>
<br>
<br>
<br>
On Wed, 15 Jun 2011 10:30:56 +0200, Marcel Wiesweg <<a href="mailto:marcel.wiesweg@gmx.de">marcel.wiesweg@gmx.de</a>><br>
wrote:<br>
<div class="im"><br>
><br>
>> some time ago we removed all lines that looked like that<br>
>><br>
>> delete xyz;<br>
>> xyz = 0;<br>
><br>
> Are you really sure about this? I hope not. Because I would agree that<br>
> crashes immediately...<br>
><br>
> Didnt we change<br>
> if (xyz) delete xyz;<br>
> to<br>
> delete xyz;<br>
> ?<br>
><br>
><br>
<br>
<br>
--<br>
</div><div class="im">Using Opera's revolutionary email client: <a href="http://www.opera.com/mail/" target="_blank">http://www.opera.com/mail/</a><br>
_______________________________________________<br>
</div><div><div></div><div class="h5">Digikam-devel mailing list<br>
<a href="mailto:Digikam-devel@kde.org">Digikam-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/digikam-devel" target="_blank">https://mail.kde.org/mailman/listinfo/digikam-devel</a><br>
</div></div></blockquote></div><br>