~KDirLister accessing already destroyed object

Dennis Nienhüser earthwings at gentoo.org
Mon Oct 1 09:04:01 BST 2007


Hi,

I'm trying to fix a crash that occurs when closing Kopete and think it's
caused by the KDirLister destructor. ~KDirLister calls stop() on its
cache, which is a singleton created by the K_GLOBAL_STATIC macro and
seems to get destroyed before ~KDirLister is called on my system.

Attached is a patch that checks this, it would be great if someone can
have a look at it and tell me whether the fix looks ok.

Dennis

-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdirlister.cpp.diff
Type: text/x-patch
Size: 730 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20071001/3b0ae5fa/attachment.bin>


More information about the kde-core-devel mailing list