diff --git a/Kernel/Library/ListedRefCounted.h b/Kernel/Library/ListedRefCounted.h index f461779c00..154d3de60e 100644 --- a/Kernel/Library/ListedRefCounted.h +++ b/Kernel/Library/ListedRefCounted.h @@ -34,6 +34,8 @@ public: if constexpr (requires { that->revoke_weak_ptrs(); }) { that->revoke_weak_ptrs(); } + if constexpr (requires { that->remove_from_secondary_lists(); }) + that->remove_from_secondary_lists(); } return new_ref_count; };