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

Commit aef64f8b authored by Steven Moreland's avatar Steven Moreland
Browse files

RPC Binder: acquire/release for Parcel send

Previously, when onBinderLeaving is called for a Parcel, this implies
that the ownership for the binder object is transferred to the other
side of the RPC binder connection. However, if there is an error
during parceling or a Parcel is created but not sent, then the resources
would be leaked.

This clarifies the release/acquisition structure of RPC binder objects.
Until the Parcel object is sent, the Parcel itself owns the binder
object.

Bug: 424526253
Test: binderRpcTest
Flag: EXEMPT bug fix
Change-Id: Ia28e9159e0bccfe72470f01fdd7db4fcc743200a
parent f31ecd57
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment