mshtml: Set frame interface to NULL after releasing it in IOleInPlaceObjectWindowless::InPlaceDeactivate.

This commit is contained in:
Jacek Caban 2011-10-03 10:58:17 -05:00 committed by Alexandre Julliard
parent ce6819d93d
commit 6cfa962922

View file

@ -197,8 +197,10 @@ static HRESULT WINAPI OleInPlaceObjectWindowless_InPlaceDeactivate(IOleInPlaceOb
if(!This->doc_obj->in_place_active)
return S_OK;
if(This->doc_obj->frame)
if(This->doc_obj->frame) {
IOleInPlaceFrame_Release(This->doc_obj->frame);
This->doc_obj->frame = NULL;
}
if(This->doc_obj->hwnd) {
ShowWindow(This->doc_obj->hwnd, SW_HIDE);