mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 06:23:45 +00:00
de-duplicate context shutdown in isolated worl deinit
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user