summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/json.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-09-29 14:44:04 +0000
committerRobert Pösel <robyer@seznam.cz>2013-09-29 14:44:04 +0000
commitd09782a435ae4a9229b853e53e603d4c621df3a3 (patch)
tree25acbd0e49c8d901bd00b9b9bf44a84e6c1257e1 /protocols/FacebookRM/src/json.cpp
parentb728069180bcea77894d344753a7fdfc4f30a061 (diff)
Facebook: cleanup using ptrA, ptrT
git-svn-id: http://svn.miranda-ng.org/main/trunk@6270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/json.cpp')
-rw-r--r--protocols/FacebookRM/src/json.cpp6
1 files changed, 2 insertions, 4 deletions
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