BluetoothDevice::~BluetoothDevice() { BluetoothService* bs = BluetoothService::Get(); // bs can be null on shutdown, where destruction might happen. NS_ENSURE_TRUE_VOID(bs); bs->UnregisterBluetoothSignalHandler(mAddress, this); Unroot(); }
BluetoothDevice::~BluetoothDevice() { BluetoothService* bs = BluetoothService::Get(); // bs can be null on shutdown, where destruction might happen. if (bs) { bs->UnregisterBluetoothSignalHandler(mPath, this); } Unroot(); }