Bug 1228519 - Fix RequestReadNotification for GATT Server API. r=brsun
authorJocelyn Liu <joliu@mozilla.com>
Mon, 30 Nov 2015 20:24:07 +0800
changeset 308775 56ae2732f32318b2a7fb8d07f3532e4e904af5ad
parent 308774 73d9848a990ecc30fc3ddf162fc248ea28b5d471
child 308776 21f92638bb1464a42955ed0a9278685fd35e2ebc
push id5513
push userraliiev@mozilla.com
push dateMon, 25 Jan 2016 13:55:34 +0000
treeherdermozilla-beta@5ee97dd05b5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbrsun
bugs1228519
milestone45.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1228519 - Fix RequestReadNotification for GATT Server API. r=brsun
dom/bluetooth/bluedroid/BluetoothGattManager.cpp
--- a/dom/bluetooth/bluedroid/BluetoothGattManager.cpp
+++ b/dom/bluetooth/bluedroid/BluetoothGattManager.cpp
@@ -3682,17 +3682,17 @@ BluetoothGattManager::RequestReadNotific
 
   // Distribute a signal to gattServer
   InfallibleTArray<BluetoothNamedValue> properties;
 
   AppendNamedValue(properties, "TransId", aTransId);
   AppendNamedValue(properties, "AttrHandle", aAttributeHandle);
   AppendNamedValue(properties, "Address", bdAddrStr);
   AppendNamedValue(properties, "NeedResponse", true);
-  AppendNamedValue(properties, "Value", new nsTArray<uint8_t>());
+  AppendNamedValue(properties, "Value", nsTArray<uint8_t>());
 
   bs->DistributeSignal(NS_LITERAL_STRING("ReadRequested"),
                        server->mAppUuid,
                        properties);
 }
 
 void
 BluetoothGattManager::RequestWriteNotification(