From ffc91880e18e0f951da920fde3b7f50f1593d476 Mon Sep 17 00:00:00 2001 From: Pavel Porvatov Date: Thu, 9 Feb 2012 14:21:53 +0400 Subject: [PATCH] 7143857: Memory leak in javax.swing.plaf.synth.SynthTreeUI Reviewed-by: alexp --- jdk/src/share/classes/javax/swing/plaf/synth/SynthTreeUI.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jdk/src/share/classes/javax/swing/plaf/synth/SynthTreeUI.java b/jdk/src/share/classes/javax/swing/plaf/synth/SynthTreeUI.java index e7a684e66a7..f1a9b15f862 100644 --- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthTreeUI.java +++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthTreeUI.java @@ -434,6 +434,8 @@ public class SynthTreeUI extends BasicTreeUI // Empty out the renderer pane, allowing renderers to be gc'ed. rendererPane.removeAll(); + + paintContext = null; } private void configureRenderer(SynthContext context) {