mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Revert "LibThreading: Fix BackgroundAction result use-after-free"
This reverts commit b2e6088bff
.
This was a speculative fix that ended up not fixing the issue.
This commit is contained in:
parent
026ffa343d
commit
2e3df52862
Notes:
sideshowbarker
2024-07-18 09:12:11 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/2e3df528628
1 changed files with 2 additions and 2 deletions
|
@ -66,8 +66,8 @@ private:
|
|||
enqueue_work([this] {
|
||||
m_result = m_action(*this);
|
||||
if (m_on_complete) {
|
||||
Core::EventLoop::current().post_event(*this, make<Core::DeferredInvocationEvent>([this, result = m_result.release_value()](auto&) {
|
||||
m_on_complete(result);
|
||||
Core::EventLoop::current().post_event(*this, make<Core::DeferredInvocationEvent>([this](auto&) {
|
||||
m_on_complete(m_result.release_value());
|
||||
this->remove_from_parent();
|
||||
}));
|
||||
Core::EventLoop::wake();
|
||||
|
|
Loading…
Reference in a new issue