mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:07:36 +00:00
AK: Fix some WeakPtr copy constructor variants not copying the link
This commit is contained in:
parent
54eeb8ee9a
commit
34b3d92a13
2 changed files with 4 additions and 3 deletions
|
@ -91,7 +91,7 @@ public:
|
|||
{
|
||||
object.do_while_locked([&](U* obj) {
|
||||
if (obj)
|
||||
obj->template make_weak_ptr<U>().take_link();
|
||||
m_link = obj->template make_weak_ptr<U>().take_link();
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -100,7 +100,7 @@ public:
|
|||
{
|
||||
object.do_while_locked([&](U* obj) {
|
||||
if (obj)
|
||||
obj->template make_weak_ptr<U>().take_link();
|
||||
m_link = obj->template make_weak_ptr<U>().take_link();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue