summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/http_request.h
diff options
context:
space:
mode:
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)