Merge pull request #1745 from lightpanda-io/renavigate_memory_leak

Fix leak introduced in inner navigation refactoring
This commit is contained in:
Karl Seguin
2026-03-09 16:55:12 +08:00
committed by GitHub

View File

@@ -652,6 +652,10 @@ fn scheduleNavigationWithArena(originator: *Page, arena: Allocator, request_url:
.navigation_type = std.meta.activeTag(nt),
};
if (target._queued_navigation) |existing| {
target.arena_pool.release(existing.arena);
}
target._queued_navigation = qn;
return session.scheduleNavigation(target);
}