mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
AK: Unbreak ref counting hooks in RefCounted
Same fix as5871072ed3
, but for userspace this time. Regressed inc4a0f01b02
.
This commit is contained in:
parent
01823746e3
commit
0e70759271
Notes:
sideshowbarker
2024-07-17 21:24:41 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/0e707592715
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ class RefCounted : public RefCountedBase {
|
|||
public:
|
||||
bool unref() const
|
||||
{
|
||||
auto const* that = static_cast<T const*>(this);
|
||||
auto* that = const_cast<T*>(static_cast<T const*>(this));
|
||||
|
||||
auto new_ref_count = deref_base();
|
||||
if (new_ref_count == 0) {
|
||||
|
|
Loading…
Reference in a new issue