reduce lifetime of transfer_arena

This commit is contained in:
Karl Seguin
2025-05-16 22:04:13 +08:00
parent 071a4f97e5
commit 2bc1192ad3

View File

@@ -126,7 +126,7 @@ pub const Session = struct {
// it isn't 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
// eventually clone the URL using its own page_arena (after it gets