From 1db119ec1180fbbfb5fa55d46f3b38ea19738bc2 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Sun, 30 Jul 2023 02:03:32 -0700 Subject: Fix memory leak (#3887) * Fix memory leak * Remove an extra copy * Further fixes --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> --- src/bun.js/bindings/ScriptExecutionContext.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/bun.js/bindings/ScriptExecutionContext.cpp') diff --git a/src/bun.js/bindings/ScriptExecutionContext.cpp b/src/bun.js/bindings/ScriptExecutionContext.cpp index d9adbeb98..eab41d584 100644 --- a/src/bun.js/bindings/ScriptExecutionContext.cpp +++ b/src/bun.js/bindings/ScriptExecutionContext.cpp @@ -14,6 +14,9 @@ namespace WebCore { static std::atomic lastUniqueIdentifier = 0; +WTF_MAKE_ISO_ALLOCATED_IMPL(EventLoopTask); +WTF_MAKE_ISO_ALLOCATED_IMPL(ScriptExecutionContext); + static Lock allScriptExecutionContextsMapLock; static HashMap& allScriptExecutionContextsMap() WTF_REQUIRES_LOCK(allScriptExecutionContextsMapLock) { -- cgit v1.2.3