diff options
Diffstat (limited to 'protocols/VKontakte')
-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);
|