mshtml: Fix nsnode leak when cloning.

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 2022-01-06 19:10:46 +02:00 committed by Alexandre Julliard
parent 3af8415ca9
commit 059848c5cd
1 changed files with 1 additions and 0 deletions

View File

@ -800,6 +800,7 @@ static HRESULT WINAPI HTMLDOMNode_cloneNode(IHTMLDOMNode *iface, VARIANT_BOOL fD
}
hres = This->vtbl->clone(This, nsnode, &new_node);
nsIDOMNode_Release(nsnode);
if(FAILED(hres))
return hres;