From e7da96acaf253cedb4b49101d682a31acc19292a Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 20 Oct 2022 19:45:17 +0200 Subject: [PATCH] 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. --- Userland/Libraries/LibWeb/DOM/Node.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Libraries/LibWeb/DOM/Node.cpp b/Userland/Libraries/LibWeb/DOM/Node.cpp index b6b1bcfe58..e6ce9a49f9 100644 --- a/Userland/Libraries/LibWeb/DOM/Node.cpp +++ b/Userland/Libraries/LibWeb/DOM/Node.cpp @@ -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());