]> source.dussan.org Git - vaadin-framework.git/commit
Clear out ClientCache when UI is detached to prevent a minor memory leak (#12199)
authorAnna Koskinen <Ansku@users.noreply.github.com>
Thu, 11 Feb 2021 13:55:21 +0000 (15:55 +0200)
committerGitHub <noreply@github.com>
Thu, 11 Feb 2021 13:55:21 +0000 (15:55 +0200)
commitf46362a731ce459d4afa7d79f60468ec72fda4ba
tree1d52c2d897082b1a0b7660dd142695b5eaa9ad44
parentbe23b014866160cb4bc3af8ed808c6f749270dce
Clear out ClientCache when UI is detached to prevent a minor memory leak (#12199)

* Clear out ClientCache when UI is detached to prevent a minor memory leak

Implemented with a listener rather than direct call from UI.detach() in
order to avoid new public API, since the whole feature has been marked
for removal. This doesn't yet prevent the cache or the type map from
getting slightly bloated during the UI's lifetime.

See: #3705
server/src/main/java/com/vaadin/server/LegacyCommunicationManager.java