From kde-commits Fri Feb 08 17:44:21 2008 From: =?utf-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Fri, 08 Feb 2008 17:44:21 +0000 To: kde-commits Subject: branches/KDE/3.5/kdelibs/kio/kio Message-Id: <1202492661.559996.1037.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=120249267919482 SVN commit 772413 by lunakl: // HACK ksycoca may open the dummy db, in such case the first call to ksycoca // in initStatic() leads to closing the dummy db and clear() being called // in the middle of it, making s_lstProfiles be NULL M +5 -0 kuserprofile.cpp --- branches/KDE/3.5/kdelibs/kio/kio/kuserprofile.cpp #772412:772413 @@ -98,6 +98,11 @@ //static void KServiceTypeProfile::clear() { + // HACK ksycoca may open the dummy db, in such case the first call to ksycoca + // in initStatic() leads to closing the dummy db and clear() being called + // in the middle of it, making s_lstProfiles be NULL + if( s_lstProfiles == NULL || s_lstProfiles->count() == 0 ) + return; profileDeleter.destructObject(); }