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

List:       kde-commits
Subject:    [Akonadi] 1d4b976: Deal with strigidaemon restarts. One interface is
From:       Till Adam <till () kdab ! com>
Date:       2010-12-30 12:32:06
Message-ID: 20101230123206.0E872A6092 () git ! kde ! org
[Download RAW message or body]

commit 1d4b9763c94804a0f47d744d7a2d9da392200318
branch master
Author: Till Adam <till@kdab.com>
Date:   Wed Dec 29 20:44:46 2010 +0100

    Deal with strigidaemon restarts. One interface is enough.

diff --git a/server/src/search/xesamsearchengine.cpp b/server/src/search/xesamsearchengine.cpp
index 9fcf63a..6ab3577 100644
--- a/server/src/search/xesamsearchengine.cpp
+++ b/server/src/search/xesamsearchengine.cpp
@@ -45,6 +45,7 @@ static qint64 uriToItemId( const QString &urlString )
 
 XesamSearchEngine::XesamSearchEngine( QObject *parent )
   : QObject( parent ),
+    mInterface( 0 ),
     mValid( true ),
     mCollector( new NotificationCollector( this ) )
 {
@@ -71,6 +72,7 @@ XesamSearchEngine::~XesamSearchEngine()
 
 void XesamSearchEngine::initializeSearchInterface()
 {
+  delete mInterface;
   mInterface = new OrgFreedesktopXesamSearchInterface(
       QLatin1String( "org.freedesktop.xesam.searcher" ),
       QLatin1String( "/org/freedesktop/xesam/searcher/main" ),
[prev in list] [next in list] [prev in thread] [next in thread] 

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