commit | 50b816222e8188a4f36c4334e3acd0b8310bbec6 | [log] [tgz] |
---|---|---|
author | Dake Gu <dake@google.com> | Tue Jul 03 15:21:03 2018 -0700 |
committer | Dake Gu <dake@google.com> | Fri Jul 06 17:55:04 2018 +0000 |
tree | ea8e58820610366349e163df0ec89b4e32da4e2b | |
parent | 69a144a87327248adeec796d6a017f79eb7cb050 [diff] |
TvInputManager: fix leaking Context when failed create Session If TvInputManagerService fails and returns null token, TvInputManager does not create a Session object, so the onSessionReleased() will not be executed. mSessionCallbackRecordMap does not clear the entry in this case. Bug: 110959874 Test: Create a TVView, call tune() with invalid id, run adb shell dumpsys meminfo and check activity count is not leaking. Change-Id: Id0c81a99cb222bac98778e5d494ebd8665cf950f