commit | 7a31b8b1df353e2a8c5245b645bb1c836e37c51a | [log] [tgz] |
---|---|---|
author | Robert Carr <racarr@google.com> | Fri Jun 19 13:14:00 2020 -0700 |
committer | Robert Carr <racarr@google.com> | Fri Jun 19 13:14:00 2020 -0700 |
tree | 424559eca161a4a3202bcfdcc8f374b12962eed8 | |
parent | 5409e24105ba32dc524a78b9be3d0f2d3beef69a [diff] |
SurfaceControlViewHost: Release ViewRoot from finalizer If we don't explicitly go through the doDie process the WindowManagerGlobal instance will hold the ViewRoot alive indefinitely. This accidental leak could be very expensive so we prevent it with a finalizer. Bug: 157709599 Test: Existing tests pass Change-Id: I4fdf368eed4b4e43faacd9f62b6d9fddfd9b7ef2