summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_thread.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-09-12 14:45:54 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-09-12 14:45:54 +0000
commit124c695427c4999bd6a4ec97735b6fcac8975474 (patch)
treebcc26f36e11c4a3729c1947e4c17842bb480c30e /protocols/VKontakte/src/vk_thread.cpp
parent8a59532193f8be2b54852fcfd828963b13877f9b (diff)
a couple of memleaks in json parser
git-svn-id: http://svn.miranda-ng.org/main/trunk@10439 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_thread.cpp')
-rw-r--r--protocols/VKontakte/src/vk_thread.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp
index 05494e53f7..4e534ec2e9 100644
--- a/protocols/VKontakte/src/vk_thread.cpp
+++ b/protocols/VKontakte/src/vk_thread.cpp
@@ -423,9 +423,11 @@ void CVkProto::OnReceiveFriends(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq
setTString(hContact, "Phone", szValue);
szValue = json_as_string(json_get(pInfo, "status"));
- if (szValue && *szValue)
- if (_tcscmp(db_get_tsa(hContact, "CList", "StatusMsg"), szValue))
+ if (szValue && *szValue) {
+ ptrT tszOldStatus(db_get_tsa(hContact, "CList", "StatusMsg"));
+ if (_tcscmp(tszOldStatus, szValue))
db_set_ts(hContact, "CList", "StatusMsg", szValue);
+ }
szValue = json_as_string(json_get(pInfo, "about"));
if (szValue && *szValue)