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

Commit 9369087f authored by tonihei's avatar tonihei
Browse files

Add MediaSession.finalize to ensure the session is unregistered

Apps may forget to call release(), which risks leaking the
session state in the system which keeps the reference to it for
as long as the app is alive.

This can be fixed by adding a finalize() implementation that
triggers the release if not already done.

Bug: 261882243
Flag: EXEMPT bugfix
Test: new test in same topic
Change-Id: I41afa5bef3b1b90501851ee7875217ef8f268930
parent 34558a2c
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