Skip to content

Commit

Permalink
Fix segfault on MacOS/iOS
Browse files Browse the repository at this point in the history
Fixes #6
  • Loading branch information
alexmoon committed Oct 11, 2023
1 parent b507d07 commit 4293009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/corebluetooth/delegates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ impl PeripheralDelegate {
}
if !receiver.is_null() {
drop(Box::from_raw(
sender.cast::<async_broadcast::InactiveReceiver<PeripheralEvent>>(),
receiver.cast::<async_broadcast::InactiveReceiver<PeripheralEvent>>(),
));
}
let _: () = msg_send![super(this, class!(NSObject)), dealloc];
Expand Down

0 comments on commit 4293009

Please sign in to comment.