mshtml: Fixed ref count in parentElement.
This commit is contained in:
parent
efe3232087
commit
c1057b43a2
@ -818,7 +818,6 @@ static HRESULT WINAPI HTMLTxtRange_parentElement(IHTMLTxtRange *iface, IHTMLElem
|
|||||||
HTMLTxtRange *This = HTMLTXTRANGE_THIS(iface);
|
HTMLTxtRange *This = HTMLTXTRANGE_THIS(iface);
|
||||||
nsIDOMNode *nsnode, *tmp;
|
nsIDOMNode *nsnode, *tmp;
|
||||||
HTMLDOMNode *node;
|
HTMLDOMNode *node;
|
||||||
HRESULT hres;
|
|
||||||
|
|
||||||
TRACE("(%p)->(%p)\n", This, parent);
|
TRACE("(%p)->(%p)\n", This, parent);
|
||||||
|
|
||||||
@ -837,10 +836,7 @@ static HRESULT WINAPI HTMLTxtRange_parentElement(IHTMLTxtRange *iface, IHTMLElem
|
|||||||
node = get_node(This->doc, nsnode);
|
node = get_node(This->doc, nsnode);
|
||||||
nsIDOMNode_Release(nsnode);
|
nsIDOMNode_Release(nsnode);
|
||||||
|
|
||||||
hres = IHTMLDOMNode_QueryInterface(HTMLDOMNODE(node), &IID_IHTMLElement, (void**)parent);
|
return IHTMLDOMNode_QueryInterface(HTMLDOMNODE(node), &IID_IHTMLElement, (void**)parent);
|
||||||
|
|
||||||
IHTMLDOMNode_Release(HTMLDOMNODE(node));
|
|
||||||
return hres;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI HTMLTxtRange_duplicate(IHTMLTxtRange *iface, IHTMLTxtRange **Duplicate)
|
static HRESULT WINAPI HTMLTxtRange_duplicate(IHTMLTxtRange *iface, IHTMLTxtRange **Duplicate)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user