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

mshtml: Do not release the principal returned by GetPrincipal.

parent 60adbec7
......@@ -2440,6 +2440,7 @@ nsIXMLHttpRequest *create_nsxhr(nsIDOMWindow *nswindow)
nsres = nsIGlobalObject_QueryInterface(nsglo, &IID_nsIScriptObjectPrincipal, (void**)&sop);
assert(nsres == NS_OK);
/* The returned principal is *not* AddRef'd */
nspri = nsIScriptObjectPrincipal_GetPrincipal(sop);
nsIScriptObjectPrincipal_Release(sop);
......@@ -2451,7 +2452,6 @@ nsIXMLHttpRequest *create_nsxhr(nsIDOMWindow *nswindow)
if(NS_FAILED(nsres))
nsIXMLHttpRequest_Release(nsxhr);
}
nsISupports_Release(nspri);
nsIGlobalObject_Release(nsglo);
if(NS_FAILED(nsres)) {
ERR("nsIXMLHttpRequest_Init failed: %08lx\n", nsres);
......
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