From 4a80fff5bf8d7868735fc3df97fa0d2bdbc59262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sun, 29 Sep 2013 12:22:25 +0000 Subject: Facebook: small memory leak fixed git-svn-id: http://svn.miranda-ng.org/main/trunk@6268 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/messages.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/FacebookRM/src') diff --git a/protocols/FacebookRM/src/messages.cpp b/protocols/FacebookRM/src/messages.cpp index 09b3b14ce8..7c36767524 100644 --- a/protocols/FacebookRM/src/messages.cpp +++ b/protocols/FacebookRM/src/messages.cpp @@ -60,7 +60,7 @@ void FacebookProto::SendMsgWorker(void *p) ProtoBroadcastAck(data->hContact, ACKTYPE_MESSAGE, ACKRESULT_SUCCESS, data->msgid, 0); CallService(MS_MSG_SETSTATUSTEXT, (WPARAM)data->hContact, NULL); } else { - char *err = mir_utf8decodeA(error_text.c_str()); + ptrA err( mir_utf8decodeA(error_text.c_str())); ProtoBroadcastAck(data->hContact, ACKTYPE_MESSAGE, ACKRESULT_FAILED, data->msgid, (LPARAM)err); } db_free(&dbv); -- cgit v1.2.3