summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-19 11:26:42 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-19 11:26:42 +0000
commit003309d40b81d64860bc0ce3491deec2a1d86ce8 (patch)
tree03ff667e4bded6c870718c37e477a72cf2fc9e18 /src/core
parent18f47c388bfc624918358517246d1756ed340ef3 (diff)
StdChat to close all windows on exit
git-svn-id: http://svn.miranda-ng.org/main/trunk@7750 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/core')
-rw-r--r--src/core/stdchat/src/main.cpp3
-rw-r--r--src/core/stdchat/src/manager.cpp2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/core/stdchat/src/main.cpp b/src/core/stdchat/src/main.cpp
index 81702484c2..d1fc7f764d 100644
--- a/src/core/stdchat/src/main.cpp
+++ b/src/core/stdchat/src/main.cpp
@@ -69,6 +69,9 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = {MIID_CHAT, M
int OnShutdown(WPARAM, LPARAM)
{
+ for (SESSION_INFO *si = pci->wndList; si; si = si->next)
+ SendMessage(si->hWnd, WM_CLOSE, 0, 0);
+
TabM_RemoveAll();
ImageList_Destroy(hIconsList);
return 0;
diff --git a/src/core/stdchat/src/manager.cpp b/src/core/stdchat/src/manager.cpp
index 995011dc42..a16e6a02d8 100644
--- a/src/core/stdchat/src/manager.cpp
+++ b/src/core/stdchat/src/manager.cpp
@@ -103,7 +103,7 @@ BOOL TabM_AddTab(const TCHAR *pszID, const char* pszModule)
BOOL TabM_RemoveAll(void)
{
while (g_TabList != NULL) {
- TABLIST * pLast = g_TabList->next;
+ TABLIST *pLast = g_TabList->next;
mir_free(g_TabList->pszModule);
mir_free(g_TabList->pszID);
mir_free(g_TabList);