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

Commit a56e6791 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 am: 0bd25702

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

Change-Id: I06018d2591de684fb7d3e5ea2a833f94fe347083
parents e091c347 0bd25702
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;