From 935c3102e47f424ff2d493d48eef95101dde82da Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Mon, 7 Sep 2015 18:36:18 +0000 Subject: SkypeWeb: fixed memleak git-svn-id: http://svn.miranda-ng.org/main/trunk@15296 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_chatrooms.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'protocols') 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; -- cgit v1.2.3