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

mshtml: Fix string leak on NamespaceError.

parent b8b87e55
......@@ -4857,6 +4857,7 @@ static HRESULT WINAPI HTMLElement6_setAttributeNS(IHTMLElement6 *iface, VARIANT
return hres;
nsAString_GetData(&ns_str, &ns);
if((!ns || !ns[0]) && wcschr(strAttributeName, ':')) {
nsAString_Finish(&ns_str);
/* FIXME: Return NamespaceError */
return E_FAIL;
}
......
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