Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-Andre Laperle2013-06-25 18:32:25 +0000
committerMarc-Andre Laperle2013-06-25 19:11:13 +0000
commit07374825fd5175e33a47080f01e53693125ba72f (patch)
tree8aa162729bb6e36bb19a50f00d6d41ce4a731f99 /dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui
parent0f64dbba50eed09c4bcda69fb20508e371098fed (diff)
downloadorg.eclipse.cdt-07374825fd5175e33a47080f01e53693125ba72f.tar.gz
org.eclipse.cdt-07374825fd5175e33a47080f01e53693125ba72f.tar.xz
org.eclipse.cdt-07374825fd5175e33a47080f01e53693125ba72f.zip
Bug 411634 - [visualizer] Small leak when multicore visualizer is closed
but debug session is still running Change-Id: I3e9003cd34e990a71dac0e310f3e14a6eb54085e Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com> Reviewed-on: https://git.eclipse.org/r/14051
Diffstat (limited to 'dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui')
-rwxr-xr-xdsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/view/MulticoreVisualizer.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/view/MulticoreVisualizer.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/view/MulticoreVisualizer.java
index a10ec652e20..c9a1fae91b7 100755
--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/view/MulticoreVisualizer.java
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/view/MulticoreVisualizer.java
@@ -14,6 +14,7 @@
* Marc Dumais (Ericsson) - Bug 405390
* Marc Dumais (Ericsson) - Bug 409006
* Marc Dumais (Ericsson) - Bug 407321
+ * Marc-Andre Laperle (Ericsson) - Bug 411634
*******************************************************************************/
package org.eclipse.cdt.dsf.gdb.multicorevisualizer.internal.ui.view;
@@ -222,6 +223,7 @@ public class MulticoreVisualizer extends GraphicCanvasVisualizer
removeDebugViewerListener();
disposeActions();
disposeLoadMeterTimer();
+ removeEventListener();
}
@@ -746,6 +748,12 @@ public class MulticoreVisualizer extends GraphicCanvasVisualizer
}
}
+ private void removeEventListener() {
+ if (m_sessionState != null) {
+ m_sessionState.removeServiceEventListener(fEventListener);
+ }
+ }
+
/**
* Invoked by VisualizerViewer when workbench selection changes.
*/

Back to the top