Skip to content
Commit 63a14469 authored by Martijn Coenen's avatar Martijn Coenen
Browse files

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
parent df29f8e5
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