changeset 5000:d43447758eba

7143857: Memory leak in javax.swing.plaf.synth.SynthTreeUI Reviewed-by: alexp
author rupashka
date Thu, 09 Feb 2012 14:21:53 +0400
parents d2e067142112
children 403e3bb8a162
files src/share/classes/javax/swing/plaf/synth/SynthTreeUI.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/javax/swing/plaf/synth/SynthTreeUI.java	Wed Feb 08 18:28:10 2012 +0400
+++ b/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) {