Jacek Caban : mshtml: Set frame interface to NULL after releasing it in IOleInPlaceObjectWindowless ::InPlaceDeactivate.
Alexandre Julliard
julliard at winehq.org
Mon Oct 3 17:21:24 CDT 2011
Module: wine
Branch: master
Commit: 6cfa962922df52a46f2227447743015635ed60e4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6cfa962922df52a46f2227447743015635ed60e4
Author: Jacek Caban <jacek at codeweavers.com>
Date: Mon Oct 3 10:58:17 2011 -0500
mshtml: Set frame interface to NULL after releasing it in IOleInPlaceObjectWindowless::InPlaceDeactivate.
---
dlls/mshtml/olewnd.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/mshtml/olewnd.c b/dlls/mshtml/olewnd.c
index 18b98f6..f272949 100644
--- a/dlls/mshtml/olewnd.c
+++ b/dlls/mshtml/olewnd.c
@@ -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);
More information about the wine-cvs
mailing list