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

Skip to content
Commit d6cd6ba6 authored by Fan Xu's avatar Fan Xu
Browse files

Add garbage collecion function to BufferHubService

Now BufferHubService will cleanup unused BufferClient automatically.

If the mClientList storing weak pointer, when user side's strong pointer
dies, the refcount will become 0 and the allocated memory in the service
will get freed.

Test: BufferHubBuffer_test (passed)
Bug: 119623209
Change-Id: I1390f878bf44afd7c1a5cccaeb34a9d13dab3db0
parent 910c0aa1
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