summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/http_request.h
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-05-13 15:21:50 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-05-13 15:21:50 +0000
commitac60e6cd374568da60bf732a8018f94d48ee9dd7 (patch)
treee85ce8fe96226a39f3d1432f29c769cd5926047c /plugins/Dropbox/src/http_request.h
parent71846c4e387e27164ffde6b2e8a188b3bc21b2eb (diff)
Dropbox:
- fixed commands sending - removed status changing git-svn-id: http://svn.miranda-ng.org/main/trunk@13571 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/http_request.h')
-rw-r--r--plugins/Dropbox/src/http_request.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/Dropbox/src/http_request.h b/plugins/Dropbox/src/http_request.h
index 79f6c09a65..0cb769f609 100644
--- a/plugins/Dropbox/src/http_request.h
+++ b/plugins/Dropbox/src/http_request.h
@@ -115,7 +115,7 @@ protected:
va_end(urlArgs);
}
- /*void SetData(const char *data, size_t size)
+ void SetData(const char *data, size_t size)
{
if (pData != NULL)
mir_free(pData);
@@ -124,7 +124,7 @@ protected:
pData = (char*)mir_alloc(size + 1);
memcpy(pData, data, size);
pData[size] = 0;
- }*/
+ }
public:
HttpRequest(int type, LPCSTR url)
@@ -152,6 +152,8 @@ public:
mir_free(headers[i].szValue);
}
mir_free(headers);
+ if (pData)
+ mir_free(pData);
}
NETLIBHTTPREQUEST* Send(HANDLE hNetlibConnection)