Commit d9da6e64 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Move detach_document_node call to HTMLDocumentNode_unlink.

parent 43ae349c
......@@ -4966,7 +4966,8 @@ static void HTMLDocumentNode_destructor(HTMLDOMNode *iface)
{
HTMLDocumentNode *This = impl_from_HTMLDOMNode(iface);
detach_document_node(This);
TRACE("(%p)\n", This);
heap_free(This->event_vector);
ConnectionPointContainer_Destroy(&This->basedoc.cp_container);
}
......@@ -4994,6 +4995,7 @@ static void HTMLDocumentNode_unlink(HTMLDOMNode *iface)
nsIDOMHTMLDocument *nsdoc = This->nsdoc;
release_document_mutation(This);
detach_document_node(This);
This->nsdoc = NULL;
nsIDOMHTMLDocument_Release(nsdoc);
This->window = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment