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

Skip to content
Commit 03c345ad authored by Aleksandar Kiridzic's avatar Aleksandar Kiridzic Committed by Aleksandar Kiridžić
Browse files

TTS: Fix binders leak due to a circular dependency

A circular dependency was found which keeps binders alive
even after shutdown:
[client]
SystemConnection -->
SystemConnection#ITextToSpeechSession -->
[server]
TextToSpeechSessionConnection -->
TextToSpeechSessionConnection#ITextToSpeechSessionCallback -->
[client]
SystemConnection -->
...

Anulling SystemConnection#ITextToSpeechSession and
TextToSpeechSessionConnection#ITextToSpeechSessionCallback
on disconnection should make it available for garbage collection
since then no intra-process references would remain.

Fix confirmed with ahat.

Bug: 233615470
Test: atest
Change-Id: I7c9d25b7306d9ce68098c5a6ba0e65711daa3c25
parent 32338521
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment