summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-05-21 19:00:58 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-05-21 19:00:58 +0000
commit48a2e2b659b6e00b3585b65d5b3413f2dcd2d735 (patch)
tree1faf6b2335f4c6ef1cc27c668e426d76674796b2
parent9147414780abfb4e406bf062561a4b62c76e3c86 (diff)
SkypeWeb: fixed memleak
git-svn-id: http://svn.miranda-ng.org/main/trunk@13736 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--protocols/SkypeWeb/src/skype_request.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/SkypeWeb/src/skype_request.cpp b/protocols/SkypeWeb/src/skype_request.cpp
index 4607087e71..deb9831219 100644
--- a/protocols/SkypeWeb/src/skype_request.cpp
+++ b/protocols/SkypeWeb/src/skype_request.cpp
@@ -45,7 +45,9 @@ public:
static void SkypeHttpResponse(const NETLIBHTTPREQUEST *response, void *arg)
{
- ((SkypeResponseDelegate*)arg)->Invoke(response);
+ SkypeResponseDelegate *delegate = (SkypeResponseDelegate*)arg;
+ delegate->Invoke(response);
+ delete delegate;
}
void CSkypeProto::PushRequest(HttpRequest *request)