[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdelibs/kio/kio
From:       Luboš Luňák <l.lunak () kde ! org>
Date:       2008-02-08 17:44:21
Message-ID: 1202492661.559996.1037.nullmailer () svn ! kde ! org
[Download RAW message or body]

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();
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic