Commit 7b48298e authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Don't access released object in release_script_hosts.

parent 6bc8e9a1
...@@ -304,8 +304,11 @@ void release_script_hosts(HTMLDocument *doc) ...@@ -304,8 +304,11 @@ void release_script_hosts(HTMLDocument *doc)
{ {
ScriptHost *iter; ScriptHost *iter;
LIST_FOR_EACH_ENTRY(iter, &doc->script_hosts, ScriptHost, entry) { while(!list_empty(&doc->script_hosts)) {
iter = LIST_ENTRY(list_head(&doc->script_hosts), ScriptHost, entry);
list_remove(&iter->entry);
iter->doc = NULL; iter->doc = NULL;
IActiveScriptSite_Release(ACTSCPSITE(iter)); IActiveScript_Release(ACTSCPSITE(iter));
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment