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

Commit 679f869e authored by Jeremy Wu's avatar Jeremy Wu
Browse files

Floss: disconnect from DBus in MMC deconstructor

There is a connection leak in the constructor. This CL does the
appropriate cleanup in the corresponding deconstructor.

Bug: 309382806
Tag: #floss
Test: atest net_test_stack_btm
Test: do profile-switch 257 times
Change-Id: I5c909d252fb5762abbd096dcc4496ff980b327b5
parent 824c22bd
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -84,7 +84,10 @@ CodecClient::CodecClient() {
  }
}

CodecClient::~CodecClient() { cleanup(); }
CodecClient::~CodecClient() {
  cleanup();
  if (bus_) bus_->ShutdownAndBlock();
}

int CodecClient::init(const ConfigParam config) {
  cleanup();