mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-10-05 02:45:48 -04:00
Merge pull request #2574 from lightpanda-io/synthentic_transfer_double_free
Prevent double-free on Synthetic URL
This commit is contained in:
1 file changed
+3
@@ -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