Fwd: Re: deleting null pointer arrays (was: Re: extragear/network/ktorrent)

Dominik Haumann dhdev at gmx.de
Thu Jan 15 12:36:16 GMT 2009


Hi,

according to [1] this change is wrong:

>>         BitSet & BitSet::operator = (const BitSet & bs)
>>         {
>> -               if (data)
>> -                       delete [] data;
>> +               delete [] data

Still, it seems to be unclear whether that's sill an issue.
Does anyone have an idea?

Dominik

[1] 
http://techbase.kde.org/Development/Tutorials/Common_Programming_Mistakes#NULL_pointer_issues
-------------- next part --------------
An embedded message was scrubbed...
From: "Joris Guisson" <joris.guisson at gmail.com>
Subject: Re: deleting null pointer arrays (was: Re: extragear/network/ktorrent)
Date: Thu, 15 Jan 2009 09:02:12 +0100
Size: 3960
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20090115/038e45f4/attachment.eml>


More information about the kde-core-devel mailing list