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

Commit f7bf63c1 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski Committed by Automerger Merge Worker
Browse files

Merge "vc: Fix null pointer dereference" into main am: fa5781a4

parents 5b291182 fa5781a4
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -89,6 +89,12 @@ struct VolumeOperation {
  };

  ~VolumeOperation() {
    if (operation_timeout_ == nullptr) {
      log::warn("operation_timeout_ should not be null, id {}, device cnt {}",
                operation_id_, devices_.size());
      return;
    }

    if (alarm_is_scheduled(operation_timeout_))
      alarm_cancel(operation_timeout_);

+2 −0
Original line number Diff line number Diff line
@@ -681,6 +681,8 @@ class VolumeControlImpl : public VolumeControl {
      return;
    }

    log::info("{}", remote_bda);

    bool notify = device->IsReady() || device->connecting_actively;
    device_cleanup_helper(device, notify);