diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2014-12-31 11:47:48 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2014-12-31 11:47:48 +0000 |
commit | e061455706e49a693473d2f22dbda6e9e63d0978 (patch) | |
tree | d9d4ce513aef87bb52935ded1d2d7472df5bb99e /plugins/IEView | |
parent | 81f73a9df3f62a65d2c3f9c1d2033bca1f66acf0 (diff) |
memleaks fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@11694 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEView')
-rw-r--r-- | plugins/IEView/src/IEView.cpp | 2 | ||||
-rw-r--r-- | plugins/IEView/src/TextToken.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
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;
}
|