diff options
Diffstat (limited to 'protocols/SkypeWeb/src/skype_request.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_request.cpp | 4 |
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)
|