From b648ec6c38c0a2b8ea50ecdb167f41557e2e2584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Mon, 29 Jul 2013 12:28:42 +0000 Subject: Facebook: utils::mem cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@5523 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/communication.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/FacebookRM/src/communication.cpp') 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) { -- cgit v1.2.3