Skip to content
Commit 21fb09f9 authored by jianzhou's avatar jianzhou Committed by Jean-Michel Trivi
Browse files

frameworks/base: Fix AudioService JNI leaks

Root cause: AudioService keeps creating new instance of
ForceControlStreamClient and linkToDeath with the same
callback which leads to global reference table overflow
Fix: don't create new instance if call back doesn't change;
release old instance before create new one.

Test: Monkey or directed (see bug)
Bug: 74056493

Change-Id: I90641ae08c9abd522e2e75c6db934235c8b803e6
parent 0aa191cc
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