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

Commit 9f97e7bc authored by Suqun Peng's avatar Suqun Peng
Browse files

AVRCP: Fix SET_ABSOLUTE_VOLUME label leak

SetVolume() allocated a label, but not free it on VendorPacketHandler()

Bug: 376616691
Change-Id: I3d6c49d0eab3bf2a91f95266686beba138799158
Test: m com.android.btservices
parent 903b6570
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -154,6 +154,7 @@ void Device::VendorPacketHandler(uint8_t label, std::shared_ptr<VendorPacket> pk
        // TODO (apanicke): Add a retry mechanism if the response has a
        // different volume than the one we set. For now, we don't care
        // about the response to this message.
        active_labels_.erase(label);
        break;
      default:
        log::warn("{}: Unhandled Response: pdu={}", address_, pkt->GetCommandPdu());