Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2011-05-16 08:11:46 -0400
committerAnton Leherbauer2011-05-16 08:11:46 -0400
commitbc5c01b86257ba7e1ab0e4fd8f243e7feadf88dd (patch)
treed7353a8e469cc33b9c7f623fb71227bec4dfde1f
parent6cca59bb7c9e1801a5789c49deb81f686c634f4f (diff)
downloadorg.eclipse.cdt-201105160958.tar.gz
org.eclipse.cdt-201105160958.tar.xz
org.eclipse.cdt-201105160958.zip
Bug 331232 - There are memory leaks with each GDB debug session (partial fix)v201105160958
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/ReverseToggleCommandHandler.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/ReverseToggleCommandHandler.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/ReverseToggleCommandHandler.java
index 4b17b80ad6..36c119fa67 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/ReverseToggleCommandHandler.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/ReverseToggleCommandHandler.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2010 Ericsson and others.
+ * Copyright (c) 2010, 2011 Ericsson and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -85,6 +85,7 @@ public class ReverseToggleCommandHandler extends DebugCommandHandler implements
fContextService.removePostDebugContextListener(this);
}
fTargetAdapter = null;
+ fActiveContext = null;
super.dispose();
}
@@ -94,6 +95,7 @@ public class ReverseToggleCommandHandler extends DebugCommandHandler implements
private void refresh(ISelection selection) {
fTargetAdapter = null;
+ fActiveContext = null;
if (selection instanceof IStructuredSelection) {
IStructuredSelection ss = (IStructuredSelection) selection;
if (!ss.isEmpty()) {

Back to the top