mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-06-11 01:25:53 -04:00
Merge pull request #2574 from lightpanda-io/synthentic_transfer_double_free
Prevent double-free on Synthetic URL
This commit is contained in:
@@ -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| {
|
||||
|
||||
Reference in New Issue
Block a user