> Issue is when setting the content of a SwingNode, the old content is not > garbage collected owing to the fact > JLightweightFrame is never being released by SwingNodeDisposer > > The SwingNodeDisposer holds an hard pointer to the JLightweightFrame that > prevents its collection > > Modified `SwingNode.setContentImpl` function to use a WeakReference to > properly release the memory.
Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: javadoc, dispose ------------- Changes: - all: https://git.openjdk.org/jfx/pull/1219/files - new: https://git.openjdk.org/jfx/pull/1219/files/7a282e15..6cf6a01b Webrevs: - full: https://webrevs.openjdk.org/?repo=jfx&pr=1219&range=04 - incr: https://webrevs.openjdk.org/?repo=jfx&pr=1219&range=03-04 Stats: 11 lines in 2 files changed: 2 ins; 4 del; 5 mod Patch: https://git.openjdk.org/jfx/pull/1219.diff Fetch: git fetch https://git.openjdk.org/jfx.git pull/1219/head:pull/1219 PR: https://git.openjdk.org/jfx/pull/1219