From 3685ebe2cbd36b223927214e85815f36b774caf7 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Mon, 4 May 2015 15:33:00 +0000 Subject: SkypeWeb: Leak fix (thx wishmaster). git-svn-id: http://svn.miranda-ng.org/main/trunk@13422 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_trouter.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'protocols') diff --git a/protocols/SkypeWeb/src/skype_trouter.cpp b/protocols/SkypeWeb/src/skype_trouter.cpp index 0546cda1b5..cbf2526e22 100644 --- a/protocols/SkypeWeb/src/skype_trouter.cpp +++ b/protocols/SkypeWeb/src/skype_trouter.cpp @@ -175,8 +175,11 @@ void CSkypeProto::TRouterThread(void*) { char *json = strstr(response->pData, "{"); if (json == NULL) + { + CallService(MS_NETLIB_FREEHTTPREQUESTSTRUCT, 0, (LPARAM)response); + delete request; continue; - + } JSONROOT root(json); ptrA szBody(mir_t2a(ptrT(json_as_string(json_get(root, "body"))))); JSONNODE *headers = json_get(root, "headers"); -- cgit v1.2.3