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

mshtml/tests: Fix attribute leak in test_attr.

parent f4f87995
...@@ -9944,6 +9944,7 @@ static void test_attr(IHTMLDocument2 *doc, IHTMLElement *elem) ...@@ -9944,6 +9944,7 @@ static void test_attr(IHTMLDocument2 *doc, IHTMLElement *elem)
V_BSTR(&v) = SysAllocString(L"newvalue"); V_BSTR(&v) = SysAllocString(L"newvalue");
put_attr_node_value(attr, v); put_attr_node_value(attr, v);
VariantClear(&v); VariantClear(&v);
IHTMLDOMAttribute_Release(attr);
attr = get_elem_attr_node((IUnknown*)elem, L"emptyattr", TRUE); attr = get_elem_attr_node((IUnknown*)elem, L"emptyattr", TRUE);
get_attr_node_value(attr, &v, VT_BSTR); get_attr_node_value(attr, &v, VT_BSTR);
......
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