diff options
author | George Hazan <ghazan@miranda.im> | 2019-01-23 19:50:02 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-01-23 19:50:02 +0300 |
commit | 8ebf21e565886d2629ba2ad5b74466879c529c3e (patch) | |
tree | 1dac70aa4e69455706f3a9eba9d4ab678c53b674 /protocols/ICQ-WIM/src/proto.cpp | |
parent | 0489bed8751d89c37ee7a3eb08cc8aa80b3524a0 (diff) |
fixes #1760 (ICQ10: random crash)
Diffstat (limited to 'protocols/ICQ-WIM/src/proto.cpp')
-rw-r--r-- | protocols/ICQ-WIM/src/proto.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/ICQ-WIM/src/proto.cpp b/protocols/ICQ-WIM/src/proto.cpp index ed713f3983..09162fc744 100644 --- a/protocols/ICQ-WIM/src/proto.cpp +++ b/protocols/ICQ-WIM/src/proto.cpp @@ -364,7 +364,10 @@ int CIcqProto::SendMsg(MCONTACT hContact, int, const char *pszSrc) auto *pOwn = new IcqOwnMessage(hContact, id, pReq->m_reqId); pReq->pUserInfo = pOwn; - m_arOwnIds.insert(pOwn); + { + mir_cslock lck(m_csOwnIds); + m_arOwnIds.insert(pOwn); + } pReq << CHAR_PARAM("a", m_szAToken) << CHAR_PARAM("aimsid", m_aimsid) << CHAR_PARAM("f", "json") << CHAR_PARAM("k", ICQ_APP_ID) << CHAR_PARAM("mentions", "") << CHAR_PARAM("message", pszSrc) << CHAR_PARAM("offlineIM", "true") << CHAR_PARAM("r", pReq->m_reqId) |