mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 20:54:43 +00:00
Merge pull request #1745 from lightpanda-io/renavigate_memory_leak
Fix leak introduced in inner navigation refactoring
This commit is contained in:
@@ -652,6 +652,10 @@ fn scheduleNavigationWithArena(originator: *Page, arena: Allocator, request_url:
|
|||||||
.navigation_type = std.meta.activeTag(nt),
|
.navigation_type = std.meta.activeTag(nt),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (target._queued_navigation) |existing| {
|
||||||
|
target.arena_pool.release(existing.arena);
|
||||||
|
}
|
||||||
|
|
||||||
target._queued_navigation = qn;
|
target._queued_navigation = qn;
|
||||||
return session.scheduleNavigation(target);
|
return session.scheduleNavigation(target);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user