Commit 278daad3 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Include nsbody reference in cycle collection.

parent b69550ab
......@@ -805,13 +805,23 @@ static HRESULT HTMLBodyElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
return HTMLElement_QI(&This->textcont.element.node, riid, ppv);
}
static void HTMLBodyElement_destructor(HTMLDOMNode *iface)
static void HTMLBodyElement_traverse(HTMLDOMNode *iface, nsCycleCollectionTraversalCallback *cb)
{
HTMLBodyElement *This = impl_from_HTMLDOMNode(iface);
nsIDOMHTMLBodyElement_Release(This->nsbody);
if(This->nsbody)
note_cc_edge((nsISupports*)This->nsbody, "This->nsbody", cb);
}
static void HTMLBodyElement_unlink(HTMLDOMNode *iface)
{
HTMLBodyElement *This = impl_from_HTMLDOMNode(iface);
HTMLElement_destructor(&This->textcont.element.node);
if(This->nsbody) {
nsIDOMHTMLBodyElement *nsbody = This->nsbody;
This->nsbody = NULL;
nsIDOMHTMLBodyElement_Release(nsbody);
}
}
static event_target_t **HTMLBodyElement_get_event_target(HTMLDOMNode *iface)
......@@ -832,12 +842,22 @@ static const cpc_entry_t HTMLBodyElement_cpc[] = {
static const NodeImplVtbl HTMLBodyElementImplVtbl = {
HTMLBodyElement_QI,
HTMLBodyElement_destructor,
HTMLElement_destructor,
HTMLBodyElement_cpc,
HTMLElement_clone,
HTMLElement_handle_event,
HTMLElement_get_attr_col,
HTMLBodyElement_get_event_target
HTMLBodyElement_get_event_target,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
HTMLBodyElement_traverse,
HTMLBodyElement_unlink
};
static const tid_t HTMLBodyElement_iface_tids[] = {
......
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