1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:27:35 +00:00

LibWeb: Revoke outstanding WeakPtrs on wrapper zombification

This fixes an issue with false positives in the GC zombie debugger.
This commit is contained in:
Andreas Kling 2021-09-11 20:17:04 +02:00
parent 0d2c3f62d3
commit 2253235a0f

View file

@ -24,6 +24,8 @@ protected:
: Object(prototype)
{
}
virtual void did_become_zombie() override { revoke_weak_ptrs(); }
};
}