From 48a2e2b659b6e00b3585b65d5b3413f2dcd2d735 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Thu, 21 May 2015 19:00:58 +0000 Subject: SkypeWeb: fixed memleak git-svn-id: http://svn.miranda-ng.org/main/trunk@13736 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_request.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3