Add missing block.copy() (#10496)

Conrad Irwin created

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

Change summary

crates/gpui/src/platform/mac/platform.rs | 1 +
1 file changed, 1 insertion(+)

Detailed changes

crates/gpui/src/platform/mac/platform.rs 🔗

@@ -570,6 +570,7 @@ impl Platform for MacPlatform {
                     let _ = done_tx.send(result);
                 }
             });
+            let block = block.copy();
             let _: () = msg_send![workspace, setDefaultApplicationAtURL: app toOpenURLsWithScheme: scheme completionHandler: block];
         }