diff options
Diffstat (limited to 'AK/Weakable.h')
-rw-r--r-- | AK/Weakable.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/Weakable.h b/AK/Weakable.h index 4b23f44f80..4ad2a516af 100644 --- a/AK/Weakable.h +++ b/AK/Weakable.h @@ -43,7 +43,7 @@ public: if (!(m_consumers.fetch_add(1u << 1, AK::MemoryOrder::memory_order_acquire) & 1u)) { T* ptr = (T*)m_ptr.load(AK::MemoryOrder::memory_order_acquire); if (ptr && ptr->try_ref()) - ref = adopt(*ptr); + ref = adopt_ref(*ptr); } m_consumers.fetch_sub(1u << 1, AK::MemoryOrder::memory_order_release); } |