diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-04-17 09:00:30 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-04-17 09:00:30 +0000 |
commit | 374784a1370ad0c375126227134367c7775bb515 (patch) | |
tree | 5cfd4dd294a09ba4d08d1a20d204dea124498a26 /protocols/SkypeWeb/src/http_request.h | |
parent | 718261d4eb8c2d824ed97e387a8f07eea797aa1b (diff) |
SkypeWeb: memleaks fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@16680 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/http_request.h')
-rw-r--r-- | protocols/SkypeWeb/src/http_request.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/SkypeWeb/src/http_request.h b/protocols/SkypeWeb/src/http_request.h index 816c5b3807..b9aa13d7dc 100644 --- a/protocols/SkypeWeb/src/http_request.h +++ b/protocols/SkypeWeb/src/http_request.h @@ -53,7 +53,7 @@ struct FORMAT_VALUE : public VALUE {
va_list args;
va_start(args, _valueFormat);
- szValue.AppendFormatV(_valueFormat, args);
+ szValue.FormatV(_valueFormat, args);
va_end(args);
}
};
@@ -253,7 +253,7 @@ public: pData = NULL;
}
- ~HttpRequest()
+ virtual ~HttpRequest()
{
for (int i = 0; i < headersCount; i++)
{
@@ -263,7 +263,7 @@ public: mir_free(headers);
}
- NETLIBHTTPREQUEST * Send(HANDLE hConnection)
+ NETLIBHTTPREQUEST* Send(HANDLE hConnection)
{
if (url.Find("://") == -1)
url.Insert(0, ((flags & NLHRF_SSL) ? "https://" : "http://"));
@@ -278,7 +278,7 @@ public: mir_snprintf(message, "Send request to %s", szUrl);
CallService(MS_NETLIB_LOG, (WPARAM)hConnection, (LPARAM)&message);
- return (NETLIBHTTPREQUEST*)CallService(MS_NETLIB_HTTPTRANSACTION, (WPARAM)hConnection, (LPARAM)this);
+ return (NETLIBHTTPREQUEST*)CallService(MS_NETLIB_HTTPTRANSACTION, (WPARAM)hConnection, (LPARAM)(NETLIBHTTPREQUEST*)this);
}
};
|