Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0bd25702 authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

Move destructor after stack flag in main/shim/::Stack::Stop() am: b0061b1e

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1455837

Change-Id: I323974e967c9398f1e22ebbea487e523670862f0
parents ec2c1d40 b0061b1e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -143,12 +143,12 @@ void Stack::Stop() {
  if (!common::InitFlags::GdCoreEnabled()) {
    bluetooth::shim::hci_on_shutting_down();
  }
  ASSERT_LOG(is_running_, "%s Gd stack not running", __func__);
  is_running_ = false;

  delete acl_;
  acl_ = nullptr;

  ASSERT_LOG(is_running_, "%s Gd stack not running", __func__);
  is_running_ = false;

  delete btm_;
  btm_ = nullptr;