From 2253235a0ffffd4d4f5699e7360e027c68084647 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 11 Sep 2021 20:17:04 +0200 Subject: [PATCH] LibWeb: Revoke outstanding WeakPtrs on wrapper zombification This fixes an issue with false positives in the GC zombie debugger. --- Userland/Libraries/LibWeb/Bindings/Wrapper.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Libraries/LibWeb/Bindings/Wrapper.h b/Userland/Libraries/LibWeb/Bindings/Wrapper.h index 2ac7c4851c..092510b1bb 100644 --- a/Userland/Libraries/LibWeb/Bindings/Wrapper.h +++ b/Userland/Libraries/LibWeb/Bindings/Wrapper.h @@ -24,6 +24,8 @@ protected: : Object(prototype) { } + + virtual void did_become_zombie() override { revoke_weak_ptrs(); } }; }