mshtml: Fix reference leak in HTMLStyleSheetsCollection_item.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Gabriel Ivăncescu 2021-10-25 16:30:28 +03:00 committed by Alexandre Julliard
parent 4e5c4758ff
commit c6b9cb7747
1 changed files with 1 additions and 0 deletions

View File

@ -540,6 +540,7 @@ static HRESULT WINAPI HTMLStyleSheetsCollection_item(IHTMLStyleSheetsCollection
}
hres = create_style_sheet(nsstylesheet, dispex_compat_mode(&This->dispex), &stylesheet);
nsIDOMStyleSheet_Release(nsstylesheet);
if(FAILED(hres))
return hres;