Recycle obtained Parcel

Bug: 218835043
Test: make
Change-Id: I8a4564e2d4ad20cbbf41a12a5bec62528d19eb89
This commit is contained in:
Nikolas Havrikov
2022-02-10 15:02:39 +01:00
parent b0385bd966
commit bfbc97b16b

View File

@@ -1037,6 +1037,7 @@ public final class UsageEvents implements Parcelable {
// Data can be too large for a transact. Write the data as a Blob, which will be written to
// ashmem if too large.
dest.writeBlob(data.marshall());
data.recycle();
}
public static final @android.annotation.NonNull Creator<UsageEvents> CREATOR = new Creator<UsageEvents>() {