| Index: device/bluetooth/bluetooth_adapter_win.cc
|
| diff --git a/device/bluetooth/bluetooth_adapter_win.cc b/device/bluetooth/bluetooth_adapter_win.cc
|
| index cd673b0d543a2fca03e52632f383b327dd5eb308..db4e644533093d43c952a5d7df8ee581cf319fe3 100644
|
| --- a/device/bluetooth/bluetooth_adapter_win.cc
|
| +++ b/device/bluetooth/bluetooth_adapter_win.cc
|
| @@ -46,7 +46,7 @@ BluetoothAdapterWin::BluetoothAdapterWin(const InitCallback& init_callback)
|
| }
|
|
|
| BluetoothAdapterWin::~BluetoothAdapterWin() {
|
| - if (task_manager_) {
|
| + if (task_manager_.get()) {
|
| task_manager_->RemoveObserver(this);
|
| task_manager_->Shutdown();
|
| }
|
|
|