mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 06:32:10 +02:00
Bug 331232 - There are memory leaks with each GDB debug session (partial fix)
This commit is contained in:
parent
6cca59bb7c
commit
bc5c01b862
1 changed files with 3 additions and 1 deletions
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
|
@ -85,6 +85,7 @@ public class ReverseToggleCommandHandler extends DebugCommandHandler implements
|
||||||
fContextService.removePostDebugContextListener(this);
|
fContextService.removePostDebugContextListener(this);
|
||||||
}
|
}
|
||||||
fTargetAdapter = null;
|
fTargetAdapter = null;
|
||||||
|
fActiveContext = null;
|
||||||
super.dispose();
|
super.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,6 +95,7 @@ public class ReverseToggleCommandHandler extends DebugCommandHandler implements
|
||||||
|
|
||||||
private void refresh(ISelection selection) {
|
private void refresh(ISelection selection) {
|
||||||
fTargetAdapter = null;
|
fTargetAdapter = null;
|
||||||
|
fActiveContext = null;
|
||||||
if (selection instanceof IStructuredSelection) {
|
if (selection instanceof IStructuredSelection) {
|
||||||
IStructuredSelection ss = (IStructuredSelection) selection;
|
IStructuredSelection ss = (IStructuredSelection) selection;
|
||||||
if (!ss.isEmpty()) {
|
if (!ss.isEmpty()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue