summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);