diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-05-04 15:33:00 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-05-04 15:33:00 +0000 |
commit | 3685ebe2cbd36b223927214e85815f36b774caf7 (patch) | |
tree | acbd0207e80496219a222933269d5366047c3973 /protocols/SkypeWeb/src | |
parent | 7240ecc8765461bddbd49dd120bf224bc96e2fa0 (diff) |
SkypeWeb: Leak fix (thx wishmaster).
git-svn-id: http://svn.miranda-ng.org/main/trunk@13422 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src')
-rw-r--r-- | protocols/SkypeWeb/src/skype_trouter.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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");
|