summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-12-03 10:52:21 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-12-03 10:52:21 +0000
commit8a63c4a12fbc856c2f6005df4621f38b4bb532b7 (patch)
tree21a4282025fb0068d90df7f345ba6dbb741b02a4 /src
parent903ccadbacf5e4d2b20a941a7e2d0cf238c0acb4 (diff)
SESSION_INFO::pMe isn't nullified on user's exit
git-svn-id: http://svn.miranda-ng.org/main/trunk@15811 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/chat_manager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mir_app/src/chat_manager.cpp b/src/mir_app/src/chat_manager.cpp
index fbc10bd8f4..edee23c4db 100644
--- a/src/mir_app/src/chat_manager.cpp
+++ b/src/mir_app/src/chat_manager.cpp
@@ -178,6 +178,7 @@ static BOOL SM_SetOffline(const TCHAR *pszID, const char *pszModule)
continue;
chatApi.UM_RemoveAll(&si->pUsers);
+ si->pMe = NULL;
si->nUsersInNicklist = 0;
if (si->iType != GCW_SERVER)
si->bInitDone = FALSE;
@@ -316,6 +317,8 @@ static BOOL SM_RemoveUser(const TCHAR *pszID, const char *pszModule, const TCHAR
if (chatApi.OnRemoveUser)
chatApi.OnRemoveUser(si, ui);
+ if (si->pMe == ui)
+ si->pMe = NULL;
chatApi.UM_RemoveUser(&si->pUsers, pszUID);
if (si->hWnd)