[bun.js] Fix a memory leak with microtasks

This commit is contained in:
Jarred Sumner
2022-03-14 23:37:43 -07:00
parent e3b3631634
commit d0a9b404c3

View File

@@ -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: