diff --git a/dom/bluetooth/bluedroid/BluetoothServiceBluedroid.cpp b/dom/bluetooth/bluedroid/BluetoothServiceBluedroid.cpp index 872a2d1f8197..b93dc125af54 100644 --- a/dom/bluetooth/bluedroid/BluetoothServiceBluedroid.cpp +++ b/dom/bluetooth/bluedroid/BluetoothServiceBluedroid.cpp @@ -772,8 +772,6 @@ BluetoothServiceBluedroid::GetDefaultAdapterPathInternal( { MOZ_ASSERT(NS_IsMainThread()); - nsRefPtr runnable(aRunnable); - BluetoothValue v = InfallibleTArray(); BT_APPEND_NAMED_VALUE(v.get_ArrayOfBluetoothNamedValue(), @@ -791,10 +789,7 @@ BluetoothServiceBluedroid::GetDefaultAdapterPathInternal( BT_APPEND_NAMED_VALUE(v.get_ArrayOfBluetoothNamedValue(), "Devices", sAdapterBondedAddressArray); - nsAutoString replyError; - DispatchBluetoothReply(runnable.get(), v, replyError); - - unused << runnable.forget(); // picked up in DispatchBluetoothReply + DispatchBluetoothReply(aRunnable, v, EmptyString()); return NS_OK; }