From 1be4f21fc7e5ec12edaefb141ea873f6130709cd Mon Sep 17 00:00:00 2001 From: achuith Date: Wed, 24 Jun 2015 12:54:50 -0700 Subject: Fix bluetooth crash after hotrod enrollment. BUG=503246 Review URL: https://codereview.chromium.org/1200083002 Cr-Commit-Position: refs/heads/master@{#335980} --- components/pairing/bluetooth_host_pairing_controller.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'components/pairing') diff --git a/components/pairing/bluetooth_host_pairing_controller.cc b/components/pairing/bluetooth_host_pairing_controller.cc index c8246b1..c157370 100644 --- a/components/pairing/bluetooth_host_pairing_controller.cc +++ b/components/pairing/bluetooth_host_pairing_controller.cc @@ -64,6 +64,7 @@ BluetoothHostPairingController::BluetoothHostPairingController() } BluetoothHostPairingController::~BluetoothHostPairingController() { + Reset(); if (adapter_.get()) { if (adapter_->IsDiscoverable()) { adapter_->SetDiscoverable(false, base::Closure(), base::Closure()); -- cgit v1.1