mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 07:03:29 +00:00
reduce lifetime of transfer_arena
This commit is contained in:
@@ -126,7 +126,7 @@ pub const Session = struct {
|
|||||||
// it isn't null!
|
// it isn't null!
|
||||||
std.debug.assert(self.page != null);
|
std.debug.assert(self.page != null);
|
||||||
|
|
||||||
_ = self.browser.transfer_arena.reset(.{ .retain_with_limit = 1 * 1024 * 1024 });
|
defer _ = self.browser.transfer_arena.reset(.{ .retain_with_limit = 1 * 1024 * 1024 });
|
||||||
|
|
||||||
// it's safe to use the transfer arena here, because the page will
|
// it's safe to use the transfer arena here, because the page will
|
||||||
// eventually clone the URL using its own page_arena (after it gets
|
// eventually clone the URL using its own page_arena (after it gets
|
||||||
|
|||||||
Reference in New Issue
Block a user