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

mshtml: Fix reference leak in HTMLStyleSheetRulesCollection_item.

parent c6b9cb77
......@@ -348,6 +348,7 @@ static HRESULT WINAPI HTMLStyleSheetRulesCollection_item(IHTMLStyleSheetRulesCol
HTMLStyleSheetRulesCollection *This = impl_from_IHTMLStyleSheetRulesCollection(iface);
nsIDOMCSSRule *nsstylesheetrule;
nsresult nsres;
HRESULT hres;
TRACE("(%p)->(%d %p)\n", This, index, p);
......@@ -357,7 +358,9 @@ static HRESULT WINAPI HTMLStyleSheetRulesCollection_item(IHTMLStyleSheetRulesCol
if(!nsstylesheetrule)
return E_INVALIDARG;
return create_style_sheet_rule(nsstylesheetrule, dispex_compat_mode(&This->dispex), p);
hres = create_style_sheet_rule(nsstylesheetrule, dispex_compat_mode(&This->dispex), p);
nsIDOMCSSRule_Release(nsstylesheetrule);
return hres;
}
static const IHTMLStyleSheetRulesCollectionVtbl HTMLStyleSheetRulesCollectionVtbl = {
......
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