mirror of
https://github.com/reactos/wine.git
synced 2025-01-19 10:13:01 +00:00
mshtml: Include nsbody reference in cycle collection.
This commit is contained in:
parent
b69550ab34
commit
278daad3bd
@ -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);
|
||||
}
|
||||
|
||||
HTMLElement_destructor(&This->textcont.element.node);
|
||||
static void HTMLBodyElement_unlink(HTMLDOMNode *iface)
|
||||
{
|
||||
HTMLBodyElement *This = impl_from_HTMLDOMNode(iface);
|
||||
|
||||
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[] = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user