mshtml: Fixed leak in HTMLCurrentStyle_Create.

This commit is contained in:
Jacek Caban 2015-06-02 16:01:20 +02:00 committed by Alexandre Julliard
parent 326c1e61b4
commit f5066488e9
1 changed files with 1 additions and 0 deletions

View File

@ -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;