diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-14 14:57:37 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-14 14:57:37 +0000 |
commit | 3d64cefb8851fcf43b9c6109abdddaf71e340a71 (patch) | |
tree | 570472c4a55ca462fe9e5049a91702859eeb0fed /protocols | |
parent | 1d680ee8c0f9b0c2a421a778cb50152581dc2873 (diff) |
- various leaks
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@965 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/IcqOscarJ/icq_infoupdate.cpp | 2 | ||||
-rw-r--r-- | protocols/IcqOscarJ/icq_proto.cpp | 3 | ||||
-rw-r--r-- | protocols/IcqOscarJ/icq_server.cpp | 3 |
3 files changed, 4 insertions, 4 deletions
diff --git a/protocols/IcqOscarJ/icq_infoupdate.cpp b/protocols/IcqOscarJ/icq_infoupdate.cpp index 5d0abbf47c..014df20e01 100644 --- a/protocols/IcqOscarJ/icq_infoupdate.cpp +++ b/protocols/IcqOscarJ/icq_infoupdate.cpp @@ -27,8 +27,8 @@ // Background thread for automatic update of user details
//
// -----------------------------------------------------------------------------
-#include "icqoscar.h"
+#include "icqoscar.h"
// Retrieve users' info
void CIcqProto::icq_InitInfoUpdate(void)
diff --git a/protocols/IcqOscarJ/icq_proto.cpp b/protocols/IcqOscarJ/icq_proto.cpp index 8e5d11100c..69b8ed8e61 100644 --- a/protocols/IcqOscarJ/icq_proto.cpp +++ b/protocols/IcqOscarJ/icq_proto.cpp @@ -359,6 +359,9 @@ int CIcqProto::OnModulesLoaded( WPARAM wParam, LPARAM lParam ) int CIcqProto::OnPreShutdown(WPARAM wParam,LPARAM lParam)
{
+ // signal info update thread to stop
+ icq_InfoUpdateCleanup();
+
// Make sure all connections are closed
CloseContactDirectConns(NULL);
return 0;
diff --git a/protocols/IcqOscarJ/icq_server.cpp b/protocols/IcqOscarJ/icq_server.cpp index 1226eae0c4..87b975d6d3 100644 --- a/protocols/IcqOscarJ/icq_server.cpp +++ b/protocols/IcqOscarJ/icq_server.cpp @@ -182,9 +182,6 @@ void __cdecl CIcqProto::ServerThread(serverthread_start_info *infoParam) SetCurrentStatus(ID_STATUS_OFFLINE);
}
- // signal info update thread to stop
- icq_InfoUpdateCleanup();
-
// signal keep-alive thread to stop
StopKeepAlive(&info);
|