diff options
| author | 2023-10-25 14:29:15 +0000 | |
|---|---|---|
| committer | 2023-11-13 13:49:22 +0000 | |
| commit | 6bfa90f77888c29bd60c542d9dc3e4564b18d3a8 (patch) | |
| tree | e8eb11580131d265b292a4a5779ffee44504999e /libs/androidfw/FileStream.cpp | |
| parent | 02b3211ef962f80aa071c84afe69aec8d58392cf (diff) | |
[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
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions