| Index: device/bluetooth/bluetooth_remote_gatt_service_win.cc
|
| diff --git a/device/bluetooth/bluetooth_remote_gatt_service_win.cc b/device/bluetooth/bluetooth_remote_gatt_service_win.cc
|
| index 84127ed51a795d9ece41a595ef34c6156973fabf..7236f82ca555a1176a777f0df20e61105aee64ee 100644
|
| --- a/device/bluetooth/bluetooth_remote_gatt_service_win.cc
|
| +++ b/device/bluetooth/bluetooth_remote_gatt_service_win.cc
|
| @@ -50,6 +50,8 @@ BluetoothRemoteGattServiceWin::BluetoothRemoteGattServiceWin(
|
| BluetoothRemoteGattServiceWin::~BluetoothRemoteGattServiceWin() {
|
| DCHECK(ui_task_runner_->RunsTasksOnCurrentThread());
|
|
|
| + ClearIncludedCharacteristics();
|
| +
|
| adapter_->NotifyGattServiceRemoved(this);
|
| }
|
|
|
| @@ -245,6 +247,7 @@ bool BluetoothRemoteGattServiceWin::DoesCharacteristicExist(
|
| void BluetoothRemoteGattServiceWin::RemoveIncludedCharacteristic(
|
| std::string identifier) {
|
| discovery_completed_included_charateristics_.erase(identifier);
|
| + included_characteristics_[identifier].reset();
|
| included_characteristics_.erase(identifier);
|
| }
|
|
|
|
|