mshtml: Moved remove_target_tasks to detach_inner_window.

This commit is contained in:
Jacek Caban 2012-10-17 12:19:53 +02:00 committed by Alexandre Julliard
parent 4a491ea7e4
commit 81e106cfa2
1 changed files with 1 additions and 1 deletions

View File

@ -116,6 +116,7 @@ static void detach_inner_window(HTMLInnerWindow *window)
if(window->doc) if(window->doc)
detach_events(window->doc); detach_events(window->doc);
abort_window_bindings(window); abort_window_bindings(window);
remove_target_tasks(window->task_magic);
release_script_hosts(window); release_script_hosts(window);
window->base.outer_window = NULL; window->base.outer_window = NULL;
@ -233,7 +234,6 @@ static void release_inner_window(HTMLInnerWindow *This)
TRACE("%p\n", This); TRACE("%p\n", This);
detach_inner_window(This); detach_inner_window(This);
remove_target_tasks(This->task_magic);
if(This->doc) { if(This->doc) {
This->doc->window = NULL; This->doc->window = NULL;