commit | 491914c17c869a174f91d0414181d1be11e040a3 | [log] [tgz] |
---|---|---|
author | Riddle Hsu <riddlehsu@google.com> | Tue Jan 18 15:40:25 2022 +0800 |
committer | Riddle Hsu <riddlehsu@google.com> | Tue Jan 18 09:46:48 2022 +0000 |
tree | 6e3a8d5d5ddb0e4e8d7ad05a3d37d3ee2167a623 | |
parent | 99f9addc90ac669a363f2f10462d264287c25caa [diff] |
Fix leakage of DisplayContent referenced from TransitionController Unlike AppTransition which is associated DisplayContent, the TransitionController is a global instance. So it needs to unregister the listener when the display is removed. Bug: 214991741 Test: Start/stop screen recording multiple times (create virtual display). The heap dump of system server should not contain many DisplayContent instances. Change-Id: I44e2a794981fc114ada0ce98cd2471adf623d856