Jacek Caban : mshtml: Detach window from frame element on window destruction.
Module: wine Branch: master Commit: bd715dc8e48c2373f68ef352081583dbd7fced1b URL: http://source.winehq.org/git/wine.git/?a=commit;h=bd715dc8e48c2373f68ef35208... Author: Jacek Caban <jacek(a)codeweavers.com> Date: Thu Dec 3 01:12:46 2009 +0100 mshtml: Detach window from frame element on window destruction. --- dlls/mshtml/htmlwindow.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/mshtml/htmlwindow.c b/dlls/mshtml/htmlwindow.c index cdbddb8..8838586 100644 --- a/dlls/mshtml/htmlwindow.c +++ b/dlls/mshtml/htmlwindow.c @@ -185,6 +185,9 @@ static ULONG WINAPI HTMLWindow2_Release(IHTMLWindow2 *iface) window_set_docnode(This, NULL); release_children(This); + if(This->frame_element) + This->frame_element->content_window = NULL; + if(This->option_factory) { This->option_factory->window = NULL; IHTMLOptionElementFactory_Release(HTMLOPTFACTORY(This->option_factory));
participants (1)
-
Alexandre Julliard