fix memory leak

This commit is contained in:
Karl Seguin
2025-02-17 11:45:19 +08:00
parent b1c3de6518
commit b60a91f53c
2 changed files with 6 additions and 2 deletions

View File

@@ -244,7 +244,7 @@ fn navigate(cmd: anytype) !void {
// Launch navigate, the page must have been created by a
// target.createTarget.
var p = cmd.session.page orelse return error.NoPage;
var p = cmd.session.currentPage() orelse return error.NoPage;
state.execution_context_id += 1;
const aux_data = try std.fmt.allocPrint(