From: Guillaume Charifi Subject: riched20: Do not destroy IRichEditOle if still referenced Message-Id: <528582.667140.1416171744133.JavaMail.www@wsfrf1122> Date: Sun, 16 Nov 2014 22:02:24 +0100 (CET) Fixes https://bugs.winehq.org/show_bug.cgi?id=37563 Fixes https://bugs.winehq.org/show_bug.cgi?id=37565 (in fact the bugs are the same) ---  dlls/riched20/editor.c | 2 +-  1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index 8fdaa53..ca316d2 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -2889,7 +2889,7 @@ void ME_DestroyEditor(ME_TextEditor *editor) ITextHost_Release(editor->texthost); if (editor->reOle) { - DestroyIRichEditOle(editor->reOle); + IRichEditOle_Release(editor->reOle); editor->reOle = NULL; } OleUninitialize();