riched20: Fix a memory leak.

Found by Valgrind.
This commit is contained in:
Huw Davies 2009-12-13 14:58:43 +00:00 committed by Alexandre Julliard
parent 9164fc24a6
commit d88c47fccb
1 changed files with 1 additions and 0 deletions

View File

@ -3283,6 +3283,7 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
wszText = lParam ? ME_ToUnicode(bUnicode, (void *)lParam) : NULL; wszText = lParam ? ME_ToUnicode(bUnicode, (void *)lParam) : NULL;
len = wszText ? lstrlenW(wszText) : 0; len = wszText ? lstrlenW(wszText) : 0;
ME_InsertTextFromCursor(editor, 0, wszText, len, style); ME_InsertTextFromCursor(editor, 0, wszText, len, style);
ME_EndToUnicode(bUnicode, wszText);
} }
if (bSelection) { if (bSelection) {