summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_polling.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-08-14 11:21:27 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-08-14 11:21:27 +0000
commit57d7aea9d038519bfa7cf38e757105d730220e37 (patch)
tree11fede11a82b96b47201118e8d7145c226cbbc89 /protocols/SkypeWeb/src/skype_polling.cpp
parentebc91d7be8f31d98822b896852e40c341b614a48 (diff)
SkypeWeb: small fixes.
git-svn-id: http://svn.miranda-ng.org/main/trunk@14952 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_polling.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_polling.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/skype_polling.cpp b/protocols/SkypeWeb/src/skype_polling.cpp
index b1b91a8d6f..bf2fc714ff 100644
--- a/protocols/SkypeWeb/src/skype_polling.cpp
+++ b/protocols/SkypeWeb/src/skype_polling.cpp
@@ -68,11 +68,11 @@ void CSkypeProto::PollingThread(void*)
PollRequest *request = new PollRequest(m_szRegToken, m_szServer);
request->nlc = m_pollingConnection;
NLHR_PTR response(request->Send(m_hNetlibUser));
+ delete request;
if (response == NULL)
{
errors++;
- delete request;
continue;
}
@@ -98,7 +98,6 @@ void CSkypeProto::PollingThread(void*)
int errorCode = error.as_int();
if (errorCode == 729)
{
- delete request;
break;
}
}
@@ -106,7 +105,7 @@ void CSkypeProto::PollingThread(void*)
}
m_pollingConnection = response->nlc;
- delete request;
+
}
if (!isTerminated)