aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vrátil <dvratil@kde.org>2016-03-06 17:40:26 (GMT)
committerDaniel Vrátil <dvratil@kde.org>2016-08-15 19:56:30 (GMT)
commitd54510766e87acee58030a8dc4336afce278d9c5 (patch)
tree144a5c7f43ff75247752c61daaa501b32932d71c
parent08bdf758310378a7bac442172e5e599042e44548 (diff)
Workaround a crash when destroying global statics on shutdown
-rw-r--r--src/server/search/searchmanager.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/search/searchmanager.cpp b/src/server/search/searchmanager.cpp
index c0253f1..d1ab843 100644
--- a/src/server/search/searchmanager.cpp
+++ b/src/server/search/searchmanager.cpp
@@ -117,10 +117,16 @@ void SearchManager::quit()
qDeleteAll(mEngines);
qDeleteAll(mPlugins);
+ /*
+ * FIXME: Unloading plugin messes up some global statics from client libs
+ * and causes crash on Akonadi shutdown (below main). Keeping the plugins
+ * loaded is not really a big issue as this is only invoked on server shutdown
+ * anyway, so we are not leaking any memory.
Q_FOREACH (QPluginLoader *loader, mPluginLoaders) {
loader->unload();
delete loader;
}
+ */
AkThread::quit();
}