summaryrefslogtreecommitdiff
path: root/plugins/IEView/src/IEView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/IEView/src/IEView.cpp')
-rw-r--r--plugins/IEView/src/IEView.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/IEView/src/IEView.cpp b/plugins/IEView/src/IEView.cpp
index e2dbb86833..c21858f8b3 100644
--- a/plugins/IEView/src/IEView.cpp
+++ b/plugins/IEView/src/IEView.cpp
@@ -913,8 +913,9 @@ void IEView::clear(IEVIEWEVENT *event)
void* IEView::getSelection(IEVIEWEVENT *event)
{
- replaceStrT(selectedText, getSelection());
- if (selectedText == NULL || wcslen(selectedText) == 0)
+ mir_free(selectedText);
+ selectedText = getSelection();
+ if (mir_wstrlen(selectedText) == 0)
return NULL;
if (event->dwFlags & IEEF_NO_UNICODE) {