[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: KDE Application memory management
From: Stefan Nikolaus <stefan.nikolaus () kdemail ! net>
Date: 2007-01-30 10:01:34
Message-ID: 200701301101.41102.stefan.nikolaus () kdemail ! net
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Monday 29 January 2007 22:51:25 me wrote:
> Do you use a d-pointer for your classes and if so are these classes copied
> around by the assignment operator? The implicit assignment copies just the
> d-pointer itself AFAICS. This overwrites the original d-pointer and the
> original private object stays without any pointer to it: mem leakage :(.
Hmm, this becomes a non-issue, if you use the proposed form for the d-pointer
Private * const d;
instead of just
Private * d;
It'd be cool, if the code checker tests for this.
Regards,
Stefan
[Attachment #5 (application/pgp-signature)]
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic