diff options
-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");
|