1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(systemtrayicon): delete qtIcon in destructor

This commit is contained in:
PafXUS 2016-06-08 19:56:31 +03:00
parent f82f49da4d
commit f997d51b66
No known key found for this signature in database
GPG Key ID: EE6F45227424D1B7
2 changed files with 2 additions and 1 deletions

View File

@ -100,6 +100,7 @@ SystemTrayIcon::SystemTrayIcon()
SystemTrayIcon::~SystemTrayIcon()
{
qDebug() << "Deleting SystemTrayIcon";
delete qtIcon;
}
QString SystemTrayIcon::extractIconToFile(QIcon icon, QString name)

View File

@ -47,7 +47,7 @@ private:
private:
SystrayBackendType backendType;
QSystemTrayIcon* qtIcon;
QSystemTrayIcon* qtIcon = nullptr;
#ifdef ENABLE_SYSTRAY_UNITY_BACKEND
AppIndicator *unityIndicator;