summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vrátil <dvratil@kde.org>2016-09-16 13:17:44 (GMT)
committerDaniel Vrátil <dvratil@kde.org>2016-09-30 08:06:42 (GMT)
commitc467dba1ef433147f645ccc82e08043cbb31d483 (patch)
tree1b1b57acbcd4953b1f66a17e7bec9a72b47de680
parent9376f6317bc0c0ee60e45f3474280499771b33f4 (diff)
Try to fix crash on shutdown
-rw-r--r--src/server/notificationmanager.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/notificationmanager.cpp b/src/server/notificationmanager.cpp
index 920af53..4418f97 100644
--- a/src/server/notificationmanager.cpp
+++ b/src/server/notificationmanager.cpp
@@ -70,10 +70,13 @@ void NotificationManager::init()
void NotificationManager::quit()
{
+ mTimer->stop();
+ delete mTimer;
+
mNotifyThreadPool->clear();
mNotifyThreadPool->waitForDone();
- delete mTimer;
delete mNotifyThreadPool;
+
qDeleteAll(mSubscribers);
AkThread::quit();