7143857: Memory leak in javax.swing.plaf.synth.SynthTreeUI
authorrupashka
Thu, 09 Feb 2012 14:21:53 +0400
changeset 11811 e0ba00baef88
parent 11810 4865c8aa6687
child 11812 fc06525cb345
7143857: Memory leak in javax.swing.plaf.synth.SynthTreeUI Reviewed-by: alexp
jdk/src/share/classes/javax/swing/plaf/synth/SynthTreeUI.java
--- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthTreeUI.java	Wed Feb 08 18:28:10 2012 +0400
+++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthTreeUI.java	Thu Feb 09 14:21:53 2012 +0400
@@ -434,6 +434,8 @@
 
         // Empty out the renderer pane, allowing renderers to be gc'ed.
         rendererPane.removeAll();
+
+        paintContext = null;
     }
 
     private void configureRenderer(SynthContext context) {