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

Commit ade7bff3 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski Committed by Jack He
Browse files

LeAudioService: Fix parcel cleaning for broadcast profile info

Bug: 236628465
Test: atest BluetoothInstrumentationTests
Tag: #feature

Change-Id: I1b0d415e9af92a45535f7a6c2c3003d9c3192f31
Merged-In: I1b0d415e9af92a45535f7a6c2c3003d9c3192f31
parent 871d130a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1053,7 +1053,10 @@ public class LeAudioService extends ProfileService {
        parcel.writeBoolean(true /* mIsLeOutput */);
        parcel.setDataPosition(0);

        return BluetoothProfileConnectionInfo.CREATOR.createFromParcel(parcel);
        BluetoothProfileConnectionInfo profileInfo =
                BluetoothProfileConnectionInfo.CREATOR.createFromParcel(parcel);
        parcel.recycle();
        return profileInfo;
    }

    private void clearLostDevicesWhileStreaming(LeAudioGroupDescriptor descriptor) {