mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
revert: fix(systemtrayicon, widget): Added deallocate memory
Revert commit cbb7eeca62
fixes #3144
This commit is contained in:
parent
fa1f26354b
commit
f95728a037
|
@ -99,19 +99,6 @@ SystemTrayIcon::SystemTrayIcon()
|
||||||
|
|
||||||
SystemTrayIcon::~SystemTrayIcon()
|
SystemTrayIcon::~SystemTrayIcon()
|
||||||
{
|
{
|
||||||
delete qtIcon;
|
|
||||||
#ifdef ENABLE_SYSTRAY_UNITY_BACKEND
|
|
||||||
delete unityIndicator;
|
|
||||||
delete unityMenu;
|
|
||||||
#endif
|
|
||||||
#ifdef ENABLE_SYSTRAY_STATUSNOTIFIER_BACKEND
|
|
||||||
delete statusNotifier;
|
|
||||||
delete snMenu;
|
|
||||||
#endif
|
|
||||||
#ifdef ENABLE_SYSTRAY_GTK_BACKEND
|
|
||||||
delete gtkIcon;
|
|
||||||
delete gtkMenu;
|
|
||||||
#endif
|
|
||||||
qDebug() << "Deleting SystemTrayIcon";
|
qDebug() << "Deleting SystemTrayIcon";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -482,10 +482,7 @@ Widget::~Widget()
|
||||||
Translator::unregister(this);
|
Translator::unregister(this);
|
||||||
AutoUpdater::abortUpdates();
|
AutoUpdater::abortUpdates();
|
||||||
if (icon)
|
if (icon)
|
||||||
{
|
|
||||||
icon->hide();
|
icon->hide();
|
||||||
delete icon;
|
|
||||||
}
|
|
||||||
|
|
||||||
delete profileForm;
|
delete profileForm;
|
||||||
delete settingsWidget;
|
delete settingsWidget;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user