mshtml: Fixed leak in HTMLCurrentStyle_Create.
This commit is contained in:
parent
326c1e61b4
commit
f5066488e9
|
@ -1338,6 +1338,7 @@ HRESULT HTMLCurrentStyle_Create(HTMLElement *elem, IHTMLCurrentStyle **p)
|
|||
nsAString_Init(&nsempty_str, NULL);
|
||||
nsres = nsIDOMWindow_GetComputedStyle(nsview, (nsIDOMElement*)elem->nselem, &nsempty_str, &nsstyle);
|
||||
nsAString_Finish(&nsempty_str);
|
||||
nsIDOMWindow_Release(nsview);
|
||||
if(NS_FAILED(nsres)) {
|
||||
ERR("GetComputedStyle failed: %08x\n", nsres);
|
||||
return E_FAIL;
|
||||
|
|
Loading…
Reference in New Issue