~KDirLister accessing already destroyed object

Olivier Goffart ogoffart at kde.org
Mon Oct 1 10:18:03 BST 2007


Le lundi 1 octobre 2007, David Faure a écrit :
> On Monday 01 October 2007, Dennis Nienhüser wrote:
> > 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.
>
> Why is that? Your KDirLister is a global static too? That seems like a very
> strange idea....

The KDirLister is a child object of a global static singleton.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20071001/eb0a50da/attachment.sig>


More information about the kde-core-devel mailing list