summaryrefslogtreecommitdiff
path: root/src/core/stdmsg/src/globals.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/stdmsg/src/globals.cpp')
-rw-r--r--src/core/stdmsg/src/globals.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/stdmsg/src/globals.cpp b/src/core/stdmsg/src/globals.cpp
index e26c8ab45a..b4a27046b6 100644
--- a/src/core/stdmsg/src/globals.cpp
+++ b/src/core/stdmsg/src/globals.cpp
@@ -46,6 +46,12 @@ static int OnShutdown(WPARAM, LPARAM)
{
WindowList_Destroy(g_dat.hMessageWindowList);
g_dat.hMessageWindowList = NULL;
+
+ for (SESSION_INFO *si = pci->wndList; si; si = si->next)
+ SendMessage(si->hWnd, WM_CLOSE, 0, 0);
+
+ TabM_RemoveAll();
+ ImageList_Destroy(hIconsList);
return 0;
}