From 8e759e2624850a183d6e79a0b3a94a64e7895936 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Fri, 25 Mar 2016 08:46:39 +0000 Subject: VK: small optimization git-svn-id: http://svn.miranda-ng.org/main/trunk@16542 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/vk_pollserver.cpp | 5 +---- 1 file changed, 1 insertion(+), 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); -- cgit v1.2.3