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:
parent
f82f49da4d
commit
f997d51b66
|
@ -100,6 +100,7 @@ SystemTrayIcon::SystemTrayIcon()
|
|||
SystemTrayIcon::~SystemTrayIcon()
|
||||
{
|
||||
qDebug() << "Deleting SystemTrayIcon";
|
||||
delete qtIcon;
|
||||
}
|
||||
|
||||
QString SystemTrayIcon::extractIconToFile(QIcon icon, QString name)
|
||||
|
|
|
@ -47,7 +47,7 @@ private:
|
|||
|
||||
private:
|
||||
SystrayBackendType backendType;
|
||||
QSystemTrayIcon* qtIcon;
|
||||
QSystemTrayIcon* qtIcon = nullptr;
|
||||
|
||||
#ifdef ENABLE_SYSTRAY_UNITY_BACKEND
|
||||
AppIndicator *unityIndicator;
|
||||
|
|
Loading…
Reference in New Issue
Block a user