commit | 335025f23958ceb36b67d2380de1382cfb5d346c | [log] [tgz] |
---|---|---|
author | chaviw <chaviw@google.com> | Thu May 09 15:22:54 2019 -0700 |
committer | chaviw <chaviw@google.com> | Thu May 09 15:37:24 2019 -0700 |
tree | 19d7d6fb20106f8dd6164d99c6870bda3477a8a6 | |
parent | ad2ddcf02251912e22127a7226bbc3223c955733 [diff] |
Changed local refs in JNI to ScopedLocalRef Objects were leaking in InputManagerService JNI since there were calls from the native process without clearing the local reference. Converted the references to ScopedLocalRef so they get removed automatically when out of scope. Test: No longer leaking IWindow when opening/closing apps Fixes: 131355264 Change-Id: I054faeb83360d7c43c3491680c3a39ba0b0c8351