Merge pull request #2574 from lightpanda-io/synthentic_transfer_double_free

Prevent double-free on Synthetic URL
This commit is contained in:
Karl Seguin authored and GitHub committed 2026-05-30 08:46:51 +08:00
commit a40c35ab5f
1 file changed
+3
+3
View File
@@ -602,6 +602,9 @@ const Synthetic = struct {
}
fn run(transfer: *Transfer, _: *anyopaque) void {
// prevents a callback that triggers a navigation queue from killing
// this transfer from under us.
transfer.state = .completing;
defer transfer.deinit();
const fulfilled = build(transfer) catch |err| {