mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 21:01:52 +00:00
[bun.js] Fix a memory leak with microtasks
This commit is contained in:
@@ -87,8 +87,10 @@ public:
|
||||
void call()
|
||||
{
|
||||
JSC::VM& vm = m_globalObject->vm();
|
||||
auto task = &m_task.get();
|
||||
auto task = &m_task.leakRef();
|
||||
task->run(m_globalObject.get());
|
||||
|
||||
task->~Microtask();
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user