]> source.dussan.org Git - vaadin-framework.git/commit
Clear out ClientCache when UI is detached to prevent a minor memory leak (#12200)
authorAnna Koskinen <Ansku@users.noreply.github.com>
Mon, 15 Feb 2021 07:03:00 +0000 (09:03 +0200)
committerGitHub <noreply@github.com>
Mon, 15 Feb 2021 07:03:00 +0000 (09:03 +0200)
commitadca7a508783d1c7c849660b02260120696ef0f2
treef6c944782a361db3967d5b0a9aac34a42afa5a84
parentebfc693f2d74965aebc6773ee696153441a822e5
Clear out ClientCache when UI is detached to prevent a minor memory leak (#12200)

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

Cherry-picked from: #12199
server/src/main/java/com/vaadin/server/LegacyCommunicationManager.java