Commit a6d35fda authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Fixed leak in get_nsstyle_attr_nsval.

parent ea95a47b
......@@ -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;
}
......
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