mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 01:41:59 -05:00
LibWeb: Call superclass GC finalizer in DOM::Node::finalize()
There isn't actually anything important happening in the superclasses right now, but let's be good citizens and call up.
This commit is contained in:
parent
1885fe529f
commit
e7da96acaf
1 changed files with 2 additions and 0 deletions
|
@ -77,6 +77,8 @@ Node::~Node() = default;
|
||||||
|
|
||||||
void Node::finalize()
|
void Node::finalize()
|
||||||
{
|
{
|
||||||
|
Base::finalize();
|
||||||
|
|
||||||
if (layout_node() && layout_node()->parent())
|
if (layout_node() && layout_node()->parent())
|
||||||
layout_node()->parent()->remove_child(*layout_node());
|
layout_node()->parent()->remove_child(*layout_node());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue