> 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: Optimize without WeakReference ------------- Changes: - all: https://git.openjdk.org/jfx/pull/1219/files - new: https://git.openjdk.org/jfx/pull/1219/files/d3a753f2..66b4d791 Webrevs: - full: https://webrevs.openjdk.org/?repo=jfx&pr=1219&range=01 - incr: https://webrevs.openjdk.org/?repo=jfx&pr=1219&range=00-01 Stats: 23 lines in 3 files changed: 10 ins; 3 del; 10 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