diff options
Diffstat (limited to 'plugins/IEView/src')
-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;
}
|