diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-09-07 18:36:18 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-09-07 18:36:18 +0000 |
commit | 935c3102e47f424ff2d493d48eef95101dde82da (patch) | |
tree | ff36f359bbe43ba3eb84ae4691e94060978c603e /protocols | |
parent | 9a39c50bfde0df663ad3bfb251e747518d5fb40d (diff) |
SkypeWeb: fixed memleak
git-svn-id: http://svn.miranda-ng.org/main/trunk@15296 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/SkypeWeb/src/skype_chatrooms.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_chatrooms.cpp b/protocols/SkypeWeb/src/skype_chatrooms.cpp index 7f00bcd8e7..32299ec583 100644 --- a/protocols/SkypeWeb/src/skype_chatrooms.cpp +++ b/protocols/SkypeWeb/src/skype_chatrooms.cpp @@ -435,9 +435,12 @@ void CSkypeProto::AddMessageToChat(const TCHAR *chat_id, const TCHAR *from, cons gce.ptszNick = from;
gce.time = timestamp;
gce.ptszUID = from;
+
ptrA szHtml(RemoveHtml(content));
- CMString tszHtml(mir_utf8decodeT(szHtml));
+
+ CMString tszHtml(ptrT(mir_utf8decodeT(szHtml)));
tszHtml.Replace(L"%", L"%%");
+
if (!isAction)
{
gce.ptszText = tszHtml;
@@ -445,7 +448,7 @@ void CSkypeProto::AddMessageToChat(const TCHAR *chat_id, const TCHAR *from, cons }
else
{
- gce.ptszText = &tszHtml.GetBuffer()[emoteOffset];
+ gce.ptszText = &(tszHtml.GetBuffer())[emoteOffset];
}
if (isLoading) gce.dwFlags = GCEF_NOTNOTIFY;
|