branches/KDE/3.5/kdelibs/kio/kio

David Faure faure at kde.org
Sun Dec 4 21:26:11 GMT 2005


On Saturday 03 December 2005 05:08, Waldo Bastian wrote:
> On Thursday 01 December 2005 13:59, David Faure wrote:
> > kdirlister is far from being the only thing that's sensitive to post-qapp
> > deletion.
> 
> Does it need to be deleted at all? Why not just leak it? It isn't dlopened....

I was wondering about it too. This applies to all kstaticdeleted things in kdelibs though
(and to qAddPostRoutine...)

I thought the idea was to delete them so that we get more interesting output from
memory-leak tools, otherwise everything would appear to be leaking.
The other reason is probably for cases where destructors run important code
(like saving some config), but indeed this doesn't apply to kdirlistercache.

OTOH we should try to make it possible to dlopen the kde libraries at some point,
but well at this point it looks like it's more of a goal for kde4 than for kde3.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).





More information about the kde-core-devel mailing list