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

Commit 158082f1 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "bluetooth_test_gd: Remove leaked thread and DB"

parents 67957174 184ffed9
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -37,10 +37,7 @@ namespace bluetooth::hci {
 */
class DeviceDatabase {
 public:
  DeviceDatabase()
      : classic_device_map_(*new std::map<std::string, std::shared_ptr<ClassicDevice>>),
        le_device_map_(*new std::map<std::string, std::shared_ptr<LeDevice>>),
        dual_device_map_(*new std::map<std::string, std::shared_ptr<DualDevice>>) {
  DeviceDatabase() : classic_device_map_(), le_device_map_(), dual_device_map_() {
    if (!ReadFromDisk()) {
      LOG_WARN("First boot or missing data!");
    }
+3 −0
Original line number Diff line number Diff line
@@ -122,6 +122,9 @@ TEST_F(FakeL2capTest, test_bidi_queue_example) {
  EXPECT_TRUE(other_end_packet != nullptr);

  bidi_queue.GetDownEnd()->UnregisterDequeue();
  handler_->Clear();
  delete handler_;
  delete thread_;
}

}  // namespace security