summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_polling.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-06-07 18:54:38 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-06-07 18:54:38 +0000
commit5d6989883de96e8f0f369dfb8af549963638ac61 (patch)
tree8fe86f09740268821624c26a6b969c1e2de946c0 /protocols/SkypeWeb/src/skype_polling.cpp
parente5cb033463036b182fb6e5e3eed50a14987f5300 (diff)
SkypeWeb: Search -> UTF-8. Code optimization.
git-svn-id: http://svn.miranda-ng.org/main/trunk@14055 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_polling.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_polling.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/skype_polling.cpp b/protocols/SkypeWeb/src/skype_polling.cpp
index 5bab08dce0..612547b1ee 100644
--- a/protocols/SkypeWeb/src/skype_polling.cpp
+++ b/protocols/SkypeWeb/src/skype_polling.cpp
@@ -66,7 +66,7 @@ void CSkypeProto::PollingThread(void*)
{
PollRequest *request = new PollRequest(m_szRegToken, m_szServer);
request->nlc = m_pollingConnection;
- NETLIBHTTPREQUEST *response = request->Send(m_hNetlibUser);
+ NLHR_PTR response(request->Send(m_hNetlibUser));
if (response == NULL)
{
@@ -99,7 +99,6 @@ void CSkypeProto::PollingThread(void*)
int errorCode = error.as_int();
if (errorCode == 729)
{
- CallService(MS_NETLIB_FREEHTTPREQUESTSTRUCT, 0, (LPARAM)response);
delete request;
break;
}
@@ -108,7 +107,6 @@ void CSkypeProto::PollingThread(void*)
}
m_pollingConnection = response->nlc;
- CallService(MS_NETLIB_FREEHTTPREQUESTSTRUCT, 0, (LPARAM)response);
delete request;
}