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) if (icon)
icon->hide(); icon->hide();
delete icon;
delete profileForm; delete profileForm;
delete settingsWidget; delete settingsWidget;
delete addFriendForm; delete addFriendForm;

View File

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