mshtml: Call unlink from HTMLDOMNode::Release.
This commit is contained in:
parent
54129a5171
commit
4745fd03d4
@ -4330,11 +4330,7 @@ static void HTMLDocumentNode_destructor(HTMLDOMNode *iface)
|
|||||||
This->nsnode_selector = NULL;
|
This->nsnode_selector = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(This->nsdoc) {
|
if(!This->nsdoc && This->window) {
|
||||||
assert(!This->window);
|
|
||||||
release_document_mutation(This);
|
|
||||||
nsIDOMHTMLDocument_Release(This->nsdoc);
|
|
||||||
}else if(This->window) {
|
|
||||||
/* document fragments own reference to inner window */
|
/* document fragments own reference to inner window */
|
||||||
IHTMLWindow2_Release(&This->window->base.IHTMLWindow2_iface);
|
IHTMLWindow2_Release(&This->window->base.IHTMLWindow2_iface);
|
||||||
This->window = NULL;
|
This->window = NULL;
|
||||||
|
@ -492,6 +492,8 @@ static ULONG WINAPI HTMLDOMNode_Release(IHTMLDOMNode *iface)
|
|||||||
TRACE("(%p) ref=%d\n", This, ref);
|
TRACE("(%p) ref=%d\n", This, ref);
|
||||||
|
|
||||||
if(!ref) {
|
if(!ref) {
|
||||||
|
if(This->vtbl->unlink)
|
||||||
|
This->vtbl->unlink(This);
|
||||||
This->vtbl->destructor(This);
|
This->vtbl->destructor(This);
|
||||||
release_dispex(&This->dispex);
|
release_dispex(&This->dispex);
|
||||||
heap_free(This);
|
heap_free(This);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user