Bug 1016186 - Wrap nsRefPtr<BluetoothAdapter> instead of BluetoothAdapter*, r=echou

This commit is contained in:
Ben Tian 2014-06-05 14:52:45 +08:00
parent 70e03af5fd
commit 913968f3ef

View File

@ -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;
}