summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothVolumeControl.java
diff options
context:
space:
mode:
authorGeorge Burgess IV <gbiv@google.com>2022-02-22 13:18:34 -0800
committerGeorge Burgess IV <gbiv@google.com>2022-02-24 13:56:17 -0800
commit2da39f90778b3cd2e2d88599b49bb9836d1cc151 (patch)
tree832a06d831fc17d61d8313a5077cffb1756ff126 /framework/java/android/bluetooth/BluetoothVolumeControl.java
parentfb34ed57fb6d267f4225f8379744379210d5ff2e (diff)
stream_apis: use a unique_ptr to avoid memory leaks
The early exit in this function causes us to leak `in`. To avoid this (and potentially other changes that would lead to the same thing), use a smart pointer. Caught by the static analyzer: > packages/modules/Bluetooth/system/audio_bluetooth_hw/stream_apis.cc:1253:5: warning: Potential leak of memory pointed to by 'in' [clang-analyzer-cplusplus.NewDeleteLeaks] Tag: #stability Bug: 206470603 Test: TreeHugger Change-Id: Ic19038061b0d444fcbe8c9656c0ca35819539d3b
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothVolumeControl.java')
0 files changed, 0 insertions, 0 deletions