summaryrefslogtreecommitdiff
path: root/protocols/Sametime/src/sametime_session.cpp
diff options
context:
space:
mode:
authorSzymon Tokarz <wsx22@o2.pl>2016-01-17 00:02:29 +0000
committerSzymon Tokarz <wsx22@o2.pl>2016-01-17 00:02:29 +0000
commit67218eaf83e947cc7dd8a8be0224b90e0b35f31a (patch)
tree353067ac38d518b0271bf35f75707a40ada49e4a /protocols/Sametime/src/sametime_session.cpp
parentefa07c67497a060009ebb5ec001dbd89684a4e17 (diff)
Sametime protocol:
- patch fixes some memory leaks reported by Coverity and some other fixes and cleanup (by Wishmaster) - some fixes by me git-svn-id: http://svn.miranda-ng.org/main/trunk@16106 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Sametime/src/sametime_session.cpp')
-rw-r--r--protocols/Sametime/src/sametime_session.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/Sametime/src/sametime_session.cpp b/protocols/Sametime/src/sametime_session.cpp
index 37bff64a3c..1d54872cd9 100644
--- a/protocols/Sametime/src/sametime_session.cpp
+++ b/protocols/Sametime/src/sametime_session.cpp
@@ -113,7 +113,7 @@ void __cdecl SessionStateChange(mwSession* session, mwSessionState state, gpoint
break;
case mwSession_STOPPED:
-
+ break;
case mwSession_LOGIN_REDIR:
proto->OnLogInRedirect((char*)info);
@@ -429,7 +429,7 @@ void __cdecl SessionThread(LPVOID param)
mwSession_start(proto->session);
}
- mir_forkthread(KeepAliveThread, (void*)proto);
+ mir_forkthread(KeepAliveThread, proto);
unsigned char* recv_buffer = (unsigned char*)mir_alloc(1024 * 32);
int bytes;
@@ -498,7 +498,7 @@ int CSametimeProto::LogIn(int ls, HANDLE hNetlibUser)
login_status = ls;
- mir_forkthread(SessionThread, (void*)this);
+ mir_forkthread(SessionThread, this);
return 0;
}
@@ -519,7 +519,7 @@ int CSametimeProto::LogOut()
int CSametimeProto::OnLogInRedirect(char* newHost)
{
- debugLog(_T("OnLogInRedirect() mwSession_LOGIN_REDIR newHost=[%s]"), _A2T(newHost));
+ debugLog(_T("OnLogInRedirect() mwSession_LOGIN_REDIR newHost=[%s]"), newHost ? _A2T(newHost) : "(null)");
if (!newHost || !mir_strcmp(newHost, options.server_name) || db_get_b(0, m_szModuleName, "ForceLogin", 0) == 1) {
debugLog(_T("OnLogInRedirect() forceLogin"));