commit | 63a1446971b20f7f1cc96e34142b680f322eeba1 | [log] [tgz] |
---|---|---|
author | Martijn Coenen <maco@google.com> | Tue Jan 28 10:08:18 2020 +0100 |
committer | Martijn Coenen <maco@google.com> | Tue Jan 28 10:52:35 2020 +0000 |
tree | 4c6faa41826c34c7ec6f57ed5c5fdc2b33c94ca5 | |
parent | df29f8e5d59d9c8136eb2a2fd6c3bd605887c7ca [diff] |
Don't leak local reference to BinderProxy. The local reference created by javaObjectForIBinder() in the death handling path is never freed, because it's not part of a regular JNI call. Use a ScopedLocalRef<> to make sure it gets freed when we no longer need it. Bug: 148181449 Test: adb shell dumpsys activity binder-proxies shows low dead nodes Change-Id: I031a46a310a06826bfadd77de7478b4342cf09ab