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

fix(widget): delete icon in destructor

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

View File

@ -507,6 +507,7 @@ Widget::~Widget()
if (icon)
icon->hide();
delete icon;
delete profileForm;
delete settingsWidget;
delete addFriendForm;

View File

@ -234,7 +234,7 @@ private:
void focusChatInput();
private:
SystemTrayIcon *icon;
SystemTrayIcon *icon = nullptr;
QMenu *trayMenu;
QAction *statusOnline;
QAction *statusAway;