From 1a4086c98c6020d30fc2a1c85b9c734100f2f3dc Mon Sep 17 00:00:00 2001 From: Karl Seguin Date: Tue, 3 Feb 2026 23:04:44 +0800 Subject: [PATCH] de-duplicate context shutdown in isolated worl deinit --- src/cdp/cdp.zig | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/cdp/cdp.zig b/src/cdp/cdp.zig index 7fc92a83..77e7071c 100644 --- a/src/cdp/cdp.zig +++ b/src/cdp/cdp.zig @@ -760,10 +760,7 @@ const IsolatedWorld = struct { grant_universal_access: bool, pub fn deinit(self: *IsolatedWorld) void { - if (self.context) |ctx| { - self.browser.env.destroyContext(ctx); - self.context = null; - } + self.removeContext() catch {}; self.browser.arena_pool.release(self.arena); }