summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-08-18 14:32:44 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-08-18 14:32:44 +0000
commit9a10fa95b91ae9e77ba0b0601374fe1abf7782ba (patch)
treedda025f3b39dd572550a511edf067d2b98946f31 /protocols/JabberG/src/jabber_proto.cpp
parent3acd84bf6889f8fe2086eda619a0175d88e05a56 (diff)
CRITICAL_SECTION removed from Jabber
git-svn-id: http://svn.miranda-ng.org/main/trunk@10229 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_proto.cpp')
-rw-r--r--protocols/JabberG/src/jabber_proto.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/protocols/JabberG/src/jabber_proto.cpp b/protocols/JabberG/src/jabber_proto.cpp
index c14aeda740..5705dbef00 100644
--- a/protocols/JabberG/src/jabber_proto.cpp
+++ b/protocols/JabberG/src/jabber_proto.cpp
@@ -71,9 +71,6 @@ CJabberProto::CJabberProto(const char *aProtoName, const TCHAR *aUserName) :
m_lstJabberFeatCapPairsDynamic(2),
m_uEnabledFeatCapsDynamic(0)
{
- InitializeCriticalSection(&m_csModeMsgMutex);
- InitializeCriticalSection(&m_csLists);
-
m_szXmlStreamToBeInitialized = NULL;
debugLogA("Setting protocol/module name to '%s'", m_szModuleName);
@@ -177,14 +174,10 @@ CJabberProto::~CJabberProto()
DestroyHookableEvent(m_hEventXStatusChanged);
ListWipe();
- DeleteCriticalSection(&m_csLists);
mir_free(m_tszSelectedLang);
mir_free(m_AuthMechs.m_gssapiHostName);
- DeleteCriticalSection(&m_filterInfo.csPatternLock);
- DeleteCriticalSection(&m_csModeMsgMutex);
-
mir_free(m_modeMsgs.szOnline);
mir_free(m_modeMsgs.szAway);
mir_free(m_modeMsgs.szNa);
@@ -195,11 +188,10 @@ CJabberProto::~CJabberProto()
mir_free(m_szStreamId);
- int i;
- for (i=0; i < m_lstTransports.getCount(); i++)
+ for (int i=0; i < m_lstTransports.getCount(); i++)
mir_free(m_lstTransports[i]);
- for (i=0; i < m_lstJabberFeatCapPairsDynamic.getCount(); i++) {
+ for (int i = 0; i < m_lstJabberFeatCapPairsDynamic.getCount(); i++) {
mir_free(m_lstJabberFeatCapPairsDynamic[i]->szExt);
mir_free(m_lstJabberFeatCapPairsDynamic[i]->szFeature);
mir_free(m_lstJabberFeatCapPairsDynamic[i]->szDescription);