mshtml: Fix text node leak in TextRange's text setter.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
This commit is contained in:
Gabriel Ivăncescu 2023-07-06 19:57:52 +03:00 committed by Alexandre Julliard
parent 9bb0dbc1e2
commit 8ac9be458b

View file

@ -969,6 +969,7 @@ static HRESULT WINAPI HTMLTxtRange_put_text(IHTMLTxtRange *iface, BSTR v)
if(NS_FAILED(nsres))
ERR("SetEndAfter failed: %08lx\n", nsres);
nsIDOMText_Release(text_node);
return IHTMLTxtRange_collapse(&This->IHTMLTxtRange_iface, VARIANT_FALSE);
}