diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-03-25 08:46:39 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-03-25 08:46:39 +0000 |
commit | 8e759e2624850a183d6e79a0b3a94a64e7895936 (patch) | |
tree | 29c49606bff84c8057133aa2b4e7f86e44eb1bec /protocols/VKontakte/src/vk_pollserver.cpp | |
parent | 4d23dbf47a8f06c153143f6caa637c247e4a91dd (diff) |
VK: small optimization
git-svn-id: http://svn.miranda-ng.org/main/trunk@16542 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_pollserver.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_pollserver.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/protocols/VKontakte/src/vk_pollserver.cpp b/protocols/VKontakte/src/vk_pollserver.cpp index 5fe77412e4..1c28865d9f 100644 --- a/protocols/VKontakte/src/vk_pollserver.cpp +++ b/protocols/VKontakte/src/vk_pollserver.cpp @@ -196,7 +196,7 @@ int CVkProto::PollServer() NETLIBHTTPREQUEST req = {};
req.cbSize = sizeof(req);
req.requestType = REQUEST_GET;
- req.szUrl = mir_strdup(szReqUrl);
+ req.szUrl = szReqUrl.GetBuffer();
req.flags = VK_NODUMPHEADERS | NLHRF_PERSISTENT | NLHRF_HTTP11 | NLHRF_SSL;
req.timeout = 30000;
req.nlc = m_pollingConn;
@@ -211,14 +211,11 @@ int CVkProto::PollServer() }
else {
debugLogA("CVkProto::PollServer => ShutdownSession");
- mir_free(req.szUrl);
ShutdownSession();
return 0;
}
}
- mir_free(req.szUrl);
-
int retVal = 0;
if (reply->resultCode == 200) {
JSONNode jnRoot = JSONNode::parse(reply->pData);
|