mshtml: Fixed leak in get_nsstyle_attr_nsval.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ea95a47bb5
commit
a6d35fdaa8
|
@ -485,15 +485,13 @@ static HRESULT get_nsstyle_attr_nsval(nsIDOMCSSStyleDeclaration *nsstyle, stylei
|
|||
nsresult nsres;
|
||||
|
||||
nsAString_InitDepend(&str_name, style_tbl[sid].name);
|
||||
|
||||
nsres = nsIDOMCSSStyleDeclaration_GetPropertyValue(nsstyle, &str_name, value);
|
||||
nsAString_Finish(&str_name);
|
||||
if(NS_FAILED(nsres)) {
|
||||
ERR("SetProperty failed: %08x\n", nsres);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
nsAString_Finish(&str_name);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue