summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/requests/asm/files.h
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-04-17 09:00:30 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-04-17 09:00:30 +0000
commit374784a1370ad0c375126227134367c7775bb515 (patch)
tree5cfd4dd294a09ba4d08d1a20d204dea124498a26 /protocols/SkypeWeb/src/requests/asm/files.h
parent718261d4eb8c2d824ed97e387a8f07eea797aa1b (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/requests/asm/files.h')
-rw-r--r--protocols/SkypeWeb/src/requests/asm/files.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/requests/asm/files.h b/protocols/SkypeWeb/src/requests/asm/files.h
index f9846c23b3..f16052150d 100644
--- a/protocols/SkypeWeb/src/requests/asm/files.h
+++ b/protocols/SkypeWeb/src/requests/asm/files.h
@@ -8,7 +8,7 @@ public:
{
flags &= (~NLHRF_DUMPASTEXT);
Headers
- << CHAR_VALUE("Authorization", CMStringA(::FORMAT, "skype_token %s", li.api.szToken))
+ << FORMAT_VALUE("Authorization", "skype_token %s", li.api.szToken)
<< CHAR_VALUE("Content-Type", "text/json");
JSONNode node, jPermissions, jPermission(JSON_ARRAY);
@@ -30,7 +30,7 @@ public:
HttpRequest(REQUEST_PUT, FORMAT, "api.asm.skype.com/v1/objects/%s/content/original", szObject)
{
Headers
- << CHAR_VALUE("Authorization", CMStringA(::FORMAT, "skype_token %s", li.api.szToken))
+ << FORMAT_VALUE("Authorization", "skype_token %s", li.api.szToken)
<< CHAR_VALUE("Content-Type", "application/octet-stream");
pData = (char*)mir_alloc(size);
@@ -40,7 +40,7 @@ public:
}
~ASMObjectUploadRequest()
{
- mir_free(pData);
HttpRequest::~HttpRequest();
+ mir_free(pData);
}
}; \ No newline at end of file