diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-01-10 14:02:40 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-01-10 14:02:40 +0000 |
commit | 5ebc752cd3731e2de4140eff3e6fca0e5d82fcf4 (patch) | |
tree | 11f557a57f695cc248b1223b36bab57727028269 /protocols/VKontakte/src/vk_proto.h | |
parent | 9b73dafa2f6da6bf60f98e17475c624f0497806b (diff) |
VKontakte (detect by coverity) :
fix memory leaks on CMString s=json_as_string(...)
fix memory leaks on CVkFileUploadParam::GetType()
fix missing break in switch on OnChatEvent
fix uninitialized field in CVkChatMessage, CVkChatInfo, AsyncHttpRequest, CVkChatUser
fix potential crash in OnReciveUpload
version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@11817 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.h')
-rw-r--r-- | protocols/VKontakte/src/vk_proto.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/protocols/VKontakte/src/vk_proto.h b/protocols/VKontakte/src/vk_proto.h index 3a562ad312..1e29b642b7 100644 --- a/protocols/VKontakte/src/vk_proto.h +++ b/protocols/VKontakte/src/vk_proto.h @@ -106,7 +106,11 @@ struct CVkSendMsgParam struct CVkChatMessage : public MZeroedObject
{
- CVkChatMessage(int _id) : m_mid(_id) {}
+ CVkChatMessage(int _id) :
+ m_mid(_id),
+ m_uid(0),
+ m_date(0),
+ m_bHistory(false){}
int m_mid, m_uid, m_date;
bool m_bHistory;
@@ -115,7 +119,11 @@ struct CVkChatMessage : public MZeroedObject struct CVkChatUser : public MZeroedObject
{
- CVkChatUser(int _id) : m_uid(_id) {}
+ CVkChatUser(int _id) :
+ m_uid(_id),
+ m_bDel(false),
+ m_bUnknown(false)
+ {}
int m_uid;
bool m_bDel, m_bUnknown;
@@ -127,7 +135,10 @@ struct CVkChatInfo : public MZeroedObject CVkChatInfo(int _id) :
m_users(10, NumericKeySortT),
m_msgs(10, NumericKeySortT),
- m_chatid(_id)
+ m_chatid(_id),
+ m_admin_id(0),
+ m_bHistoryRead(0),
+ m_hContact(INVALID_CONTACT_ID)
{}
int m_chatid, m_admin_id;
|