From d09782a435ae4a9229b853e53e603d4c621df3a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sun, 29 Sep 2013 14:44:04 +0000 Subject: Facebook: cleanup using ptrA, ptrT git-svn-id: http://svn.miranda-ng.org/main/trunk@6270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/json.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'protocols/FacebookRM/src/json.cpp') diff --git a/protocols/FacebookRM/src/json.cpp b/protocols/FacebookRM/src/json.cpp index 45e1bc0267..be1e6232ab 100644 --- a/protocols/FacebookRM/src/json.cpp +++ b/protocols/FacebookRM/src/json.cpp @@ -511,11 +511,9 @@ int facebook_json_parser::parse_messages(void* data, std::vector< facebook_messa proto->Log(" Got multichat message"); - TCHAR* szTitle = mir_utf8decodeT(title.c_str()); - TCHAR* szText = mir_utf8decodeT(popup_text.c_str()); + ptrT szTitle( mir_utf8decodeT(title.c_str())); + ptrT szText( mir_utf8decodeT(popup_text.c_str())); proto->NotifyEvent(szTitle, szText, NULL, FACEBOOK_EVENT_OTHER, &url); - mir_free(szTitle); - mir_free(szText); } else if (t == "notification_json") { // event notification -- cgit v1.2.3