diff --git a/src/corebluetooth/delegates.rs b/src/corebluetooth/delegates.rs index 34832f2..9d97034 100644 --- a/src/corebluetooth/delegates.rs +++ b/src/corebluetooth/delegates.rs @@ -509,7 +509,7 @@ impl PeripheralDelegate { } if !receiver.is_null() { drop(Box::from_raw( - sender.cast::>(), + receiver.cast::>(), )); } let _: () = msg_send![super(this, class!(NSObject)), dealloc];