From e061455706e49a693473d2f22dbda6e9e63d0978 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Wed, 31 Dec 2014 11:47:48 +0000 Subject: memleaks fix git-svn-id: http://svn.miranda-ng.org/main/trunk@11694 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/IEView/src/IEView.cpp | 2 +- plugins/IEView/src/TextToken.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/IEView') diff --git a/plugins/IEView/src/IEView.cpp b/plugins/IEView/src/IEView.cpp index 7a3555192a..6e86e1ab30 100644 --- a/plugins/IEView/src/IEView.cpp +++ b/plugins/IEView/src/IEView.cpp @@ -909,7 +909,7 @@ void IEView::write(const wchar_t *text) variant->bstrVal = bstr = SysAllocString(text); SafeArrayUnaccessData(safe_array); document->write(safe_array); - //SysFreeString(bstr); -> SafeArrayDestroy should be enough + SysFreeString(bstr); SafeArrayDestroy(safe_array); } document->Release(); diff --git a/plugins/IEView/src/TextToken.cpp b/plugins/IEView/src/TextToken.cpp index 2c8d122279..a5d208a199 100644 --- a/plugins/IEView/src/TextToken.cpp +++ b/plugins/IEView/src/TextToken.cpp @@ -515,6 +515,7 @@ TextToken* TextToken::tokenizeChatFormatting(const wchar_t *text) } i += newTokenSize; } + delete[] tokenBuffer; return firstToken; } -- cgit v1.2.3