summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_polling.cpp
diff options
context:
space:
mode:
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)