mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 04:40:48 +00:00
mshtml: Fix text node leak in OptionElement text setter.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
This commit is contained in:
parent
1012b9ba64
commit
6412d86bda
|
@ -283,6 +283,7 @@ static HRESULT WINAPI HTMLOptionElement_put_text(IHTMLOptionElement *iface, BSTR
|
|||
}
|
||||
|
||||
nsres = nsIDOMElement_AppendChild(This->element.dom_element, (nsIDOMNode*)text_node, &tmp);
|
||||
nsIDOMText_Release(text_node);
|
||||
if(NS_SUCCEEDED(nsres))
|
||||
nsIDOMNode_Release(tmp);
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue