diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-07-29 12:28:42 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-07-29 12:28:42 +0000 |
commit | b648ec6c38c0a2b8ea50ecdb167f41557e2e2584 (patch) | |
tree | 566c0dce322fc940d44f90d2fa4974b7302d5f16 /protocols/FacebookRM/src/communication.cpp | |
parent | 6646e16fecc868ba55783c07737a9197dc72f8ba (diff) |
Facebook: utils::mem cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@5523 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/communication.cpp')
-rw-r--r-- | protocols/FacebookRM/src/communication.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp index fb054e63e1..ab54ee1f9d 100644 --- a/protocols/FacebookRM/src/communication.cpp +++ b/protocols/FacebookRM/src/communication.cpp @@ -76,8 +76,8 @@ http::response facebook_client::flap(RequestType request_type, std::string* requ NETLIBHTTPREQUEST* pnlhr = (NETLIBHTTPREQUEST*)CallService(MS_NETLIB_HTTPTRANSACTION, (WPARAM)handle_, (LPARAM)&nlhr);
- utils::mem::detract(nlhr.headers[3].szValue);
- utils::mem::detract(nlhr.headers);
+ mir_free(nlhr.headers[3].szValue);
+ mir_free(nlhr.headers);
http::response resp;
@@ -576,7 +576,7 @@ NETLIBHTTPHEADER* facebook_client::get_request_headers(int request_type, int* he else
*headers_count = 4;
- NETLIBHTTPHEADER* headers = (NETLIBHTTPHEADER*)utils::mem::allocate(sizeof(NETLIBHTTPHEADER)*(*headers_count));
+ NETLIBHTTPHEADER* headers = (NETLIBHTTPHEADER*)mir_calloc(sizeof(NETLIBHTTPHEADER)*(*headers_count));
if (request_type == REQUEST_POST)
{
|