Commit 541257b0 authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

mshtml: Fix nsparser leak if script_elem_from_nsscript failed.

parent fb0b55c5
......@@ -352,8 +352,11 @@ static nsresult run_insert_script(HTMLDocumentNode *doc, nsISupports *script_ifa
hres = script_elem_from_nsscript(nsscript, &script_elem);
nsIDOMHTMLScriptElement_Release(nsscript);
if(FAILED(hres))
if(FAILED(hres)) {
if(nsparser)
nsIParser_Release(nsparser);
return NS_ERROR_FAILURE;
}
if(nsparser) {
nsIParser_BeginEvaluatingParserInsertedScript(nsparser);
......
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