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

Skip to content
Commit 6bfa90f7 authored by Felix Oghina's avatar Felix Oghina
Browse files

[speech] implement finalizer for SpeechRecognizer objects

This change is needed because GC'd SpeechRecognizer objects will leak an open binder connection and cause a leak in system_server until this process dies. This finalizer ensures we call destroy when SR is garbage collected, which notifies system_server to do internal cleanup.

Test: atest CtsVoiceRecognitionTestCases
Bug: 297249772

Change-Id: I04061a84e21fab3ffbabc68d003c4436a27f837f
parent 02b3211e
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