mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:37:35 +00: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()
|
||||
{
|
||||
Base::finalize();
|
||||
|
||||
if (layout_node() && layout_node()->parent())
|
||||
layout_node()->parent()->remove_child(*layout_node());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue