riched20: Set editor->reOle to NULL when IRichEditOle is released.

This commit is contained in:
Jactry Zeng 2014-09-30 20:11:55 +08:00 committed by Alexandre Julliard
parent ad842c42f0
commit a3b8065600

View file

@ -142,6 +142,7 @@ IRichEditOle_fnRelease(IRichEditOle *me)
ITextRangeImpl *txtRge;
TRACE ("Destroying %p\n", This);
This->txtSel->reOle = NULL;
This->editor->reOle = NULL;
ITextSelection_Release(&This->txtSel->ITextSelection_iface);
IOleClientSite_Release(&This->clientSite->IOleClientSite_iface);
LIST_FOR_EACH_ENTRY(txtRge, &This->rangelist, ITextRangeImpl, entry)