Add missing block.copy() (#10496)
https://crates.io/crates/block implies this is necessary, and we're still seeing segfaults in this method, so... Release Notes: - Fixed a panic when installing the CLI / registering for the zed:// protocol
This commit is contained in:
parent
ba9c5929af
commit
e64ecdc9ab
1 changed files with 1 additions and 0 deletions
|
@ -570,6 +570,7 @@ impl Platform for MacPlatform {
|
||||||
let _ = done_tx.send(result);
|
let _ = done_tx.send(result);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
let block = block.copy();
|
||||||
let _: () = msg_send![workspace, setDefaultApplicationAtURL: app toOpenURLsWithScheme: scheme completionHandler: block];
|
let _: () = msg_send![workspace, setDefaultApplicationAtURL: app toOpenURLsWithScheme: scheme completionHandler: block];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue