From a86f4092989edffa485c2a8412f8edf72a01395c Mon Sep 17 00:00:00 2001 From: Phenom Date: Fri, 15 Jan 2021 11:48:20 +0100 Subject: [PATCH] Fix MainWindow Destructor delete order. --- retroshare-gui/src/gui/MainWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/MainWindow.cpp b/retroshare-gui/src/gui/MainWindow.cpp index ea9e9d8df..85b571f2f 100644 --- a/retroshare-gui/src/gui/MainWindow.cpp +++ b/retroshare-gui/src/gui/MainWindow.cpp @@ -376,8 +376,8 @@ MainWindow::~MainWindow() delete toasterDisable; delete sysTrayStatus; delete trayIcon; + delete notifyMenu;//notifyMenu belongs to trayMenu delete trayMenu; - delete notifyMenu; #ifdef MESSENGER_WINDOW MessengerWindow::releaseInstance(); #endif