Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Rennie2007-09-24 21:29:36 +0000
committerMichael Rennie2007-09-24 21:29:36 +0000
commitfa21c8bf97a7bc72acc4bfa201838ac3d6c8abd1 (patch)
treec7fd23d985020397f4dba4759a7ce8a42022b9a6 /org.eclipse.ui.console
parent7287e23df4260a0ff442d3695fb50a40bd093232 (diff)
downloadeclipse.platform.debug-fa21c8bf97a7bc72acc4bfa201838ac3d6c8abd1.tar.gz
eclipse.platform.debug-fa21c8bf97a7bc72acc4bfa201838ac3d6c8abd1.tar.xz
eclipse.platform.debug-fa21c8bf97a7bc72acc4bfa201838ac3d6c8abd1.zip
Bug 203615 TextConsoleViewer leaks Cursors
Diffstat (limited to 'org.eclipse.ui.console')
-rw-r--r--org.eclipse.ui.console/src/org/eclipse/ui/console/TextConsoleViewer.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/console/TextConsoleViewer.java b/org.eclipse.ui.console/src/org/eclipse/ui/console/TextConsoleViewer.java
index c6562025c..50c1a8e2d 100644
--- a/org.eclipse.ui.console/src/org/eclipse/ui/console/TextConsoleViewer.java
+++ b/org.eclipse.ui.console/src/org/eclipse/ui/console/TextConsoleViewer.java
@@ -589,7 +589,13 @@ public class TextConsoleViewer extends SourceViewer implements LineStyleListener
styledText.removeLineBackgroundListener(this);
styledText.removeMouseTrackListener(this);
+ if(handCursor != null) {
+ handCursor.dispose();
+ }
handCursor = null;
+ if(textCursor != null) {
+ textCursor.dispose();
+ }
textCursor = null;
hyperlink = null;
console = null;

Back to the top