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

Commit b9498587 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

LeAudioService: Fix parcel cleaning for broadcast profile info

Bug: 236628465
Test: atest BluetoothInstrumentationTests
Tag: #feature
Ignore-AOSP-First: Valid only for T

Change-Id: I1b0d415e9af92a45535f7a6c2c3003d9c3192f31
parent 41b2b4e6
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1100,7 +1100,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) {