1
0
Fork 0
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:
Anton Leherbauer 2011-05-16 12:11:46 +00:00
parent 6cca59bb7c
commit bc5c01b862

View file

@ -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()) {