summaryrefslogtreecommitdiff
path: root/plugins/IEView/src/IEView.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-05-14 20:41:25 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-05-14 20:41:25 +0000
commitac32e14b818582f916d320bb2d0f94068bcf45ed (patch)
tree12ee82c96d1c169ee935826a978c770e36db42a3 /plugins/IEView/src/IEView.cpp
parent6b0510d035977680aedde109cbdae0cf4c8f44c9 (diff)
fix for memory leak
git-svn-id: http://svn.miranda-ng.org/main/trunk@13597 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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) {