[PATCH] kdelibs: Memory leaks (d-pointer not deleted) fixed

Thiago Macieira thiago.macieira at kdemail.net
Tue Jan 4 02:23:10 GMT 2005

André Wöbbeking wrote:
>On Friday 31 December 2004 06:07, Benjamin Meyer wrote:
>> Would this be something to be added to the KDELIBS todo list for KDE
>> 4?
>> * Change all FooPrivate *d; -> FooPrivate const *d; and place
>> initialization in constructor.
>You probably mean FooPrivate *const d as you want the pointer to be

Just bear in mind that not all classes would benefit of this. Some delay 
initialisation of d till they need it. Others share d-pointers among 

  Thiago Macieira  -  thiago (AT) macieira (DOT) info
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

4. And æfter se scieppend ingelogode, he wrát "cenn", ac eala! se 
rihtendgesamnung andswarode "cenn: ne wát hú cennan 'eall'. Ástynt."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050104/488405cf/attachment.sig>

More information about the kde-core-devel mailing list