mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 1016186 - Wrap nsRefPtr<BluetoothAdapter> instead of BluetoothAdapter*, r=echou
This commit is contained in:
parent
70e03af5fd
commit
913968f3ef
@ -260,7 +260,7 @@ BluetoothManager::DispatchAttributeEvent()
|
||||
NS_ENSURE_TRUE_VOID(scope);
|
||||
|
||||
JSAutoCompartment ac(cx, scope);
|
||||
if (!ToJSValue(cx, adapter, &value)) {
|
||||
if (!ToJSValue(cx, mAdapters[mDefaultAdapterIndex], &value)) {
|
||||
JS_ClearPendingException(cx);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user