Skip to content

Commit 2bc1192

Browse files
committed
reduce lifetime of transfer_arena
1 parent 071a4f9 commit 2bc1192

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browser/session.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ pub const Session = struct {
126126
// it isn't null!
127127
std.debug.assert(self.page != null);
128128

129-
_ = self.browser.transfer_arena.reset(.{ .retain_with_limit = 1 * 1024 * 1024 });
129+
defer _ = self.browser.transfer_arena.reset(.{ .retain_with_limit = 1 * 1024 * 1024 });
130130

131131
// it's safe to use the transfer arena here, because the page will
132132
// eventually clone the URL using its own page_arena (after it gets

0 commit comments

Comments
 (0)