dbustray: Delete m_notifier in QDBusTrayIcon::cleanup()

This fixes a bug where notificationClosed() and actionInvoked() slots
were called more than once, from previous alive notifier instances.

Change-Id: I4cb4dfc27ee129bc5282fbd8e0961959d0765112
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
bb10
Dmitry Shachnev 2016-09-09 11:39:10 +03:00 committed by Shawn Rutledge
parent 835d7cf543
commit 63656dbed7
1 changed files with 2 additions and 0 deletions

View File

@ -118,6 +118,8 @@ void QDBusTrayIcon::cleanup()
dBusConnection()->unregisterTrayIcon(this);
delete m_dbusConnection;
m_dbusConnection = Q_NULLPTR;
delete m_notifier;
m_notifier = Q_NULLPTR;
m_registered = false;
}