From e31fe7804cc11d41302c097125b1e88fff2585aa Mon Sep 17 00:00:00 2001 From: Zaggy1024 Date: Wed, 11 Feb 2026 17:41:54 -0600 Subject: [PATCH] AK: Call deref_base() on the pointer type This makes it easier to print logs when unrefing a RefCounted type without rebuilding the world. --- AK/RefCounted.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/RefCounted.h b/AK/RefCounted.h index ce48e6e73f..c062eb7628 100644 --- a/AK/RefCounted.h +++ b/AK/RefCounted.h @@ -59,7 +59,7 @@ public: { auto* that = const_cast(static_cast(this)); - auto new_ref_count = deref_base(); + auto new_ref_count = that->deref_base(); if (new_ref_count == 0) { if constexpr (requires { that->will_be_destroyed(); }) that->will_be_destroyed();