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:
Andreas Kling 2022-10-20 19:45:17 +02:00
parent 1885fe529f
commit e7da96acaf

View file

@ -77,6 +77,8 @@ Node::~Node() = default;
void Node::finalize()
{
Base::finalize();
if (layout_node() && layout_node()->parent())
layout_node()->parent()->remove_child(*layout_node());