diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Heap/Handle.h')
-rw-r--r-- | Userland/Libraries/LibJS/Heap/Handle.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Heap/Handle.h b/Userland/Libraries/LibJS/Heap/Handle.h index ef720584c1..ace0257ade 100644 --- a/Userland/Libraries/LibJS/Heap/Handle.h +++ b/Userland/Libraries/LibJS/Heap/Handle.h @@ -39,7 +39,7 @@ public: static Handle create(T* cell) { - return Handle(adopt(*new HandleImpl(cell))); + return Handle(adopt_ref(*new HandleImpl(cell))); } T* cell() { return static_cast<T*>(m_impl->cell()); } |