From 81e106cfa218ab09b9f7bb108546616bb6986ee2 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Wed, 17 Oct 2012 12:19:53 +0200 Subject: [PATCH] mshtml: Moved remove_target_tasks to detach_inner_window. --- dlls/mshtml/htmlwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/mshtml/htmlwindow.c b/dlls/mshtml/htmlwindow.c index 209a64956f9..59b02ab46b4 100644 --- a/dlls/mshtml/htmlwindow.c +++ b/dlls/mshtml/htmlwindow.c @@ -116,6 +116,7 @@ static void detach_inner_window(HTMLInnerWindow *window) if(window->doc) detach_events(window->doc); abort_window_bindings(window); + remove_target_tasks(window->task_magic); release_script_hosts(window); window->base.outer_window = NULL; @@ -233,7 +234,6 @@ static void release_inner_window(HTMLInnerWindow *This) TRACE("%p\n", This); detach_inner_window(This); - remove_target_tasks(This->task_magic); if(This->doc) { This->doc->window = NULL;