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
Loading
Please register or sign in to comment