[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-29 21:51:25
Message-ID: 200701292251.28790.stefan.nikolaus () kdemail ! net
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Monday 29 January 2007 16:05:21 Sebastian Trüg wrote:
> I do not know that much about memory management so I have to ask:
> After closing a big project in K3b the memory usage as reported by "ps aux"
> does not change at all although everything is properly "deleted". When I
> then reopen the project the memory seems to be reused since usage only
> increases slightly as opposed to a big increase when opening the project
> for the first time.
> I tried this in another KDE application (khexedit) and it does release all
> the resources after closing a file.
> Is there anything I can do about this or might this be a memory leak after
> all?

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 :(.

I've just encountered this problem. Don't know wether my interpretation is 
right though.

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