1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 240380

Add the missing DsfServicesTracker.dispose() calls
This commit is contained in:
Marc Khouzam 2008-07-11 13:32:13 +00:00
parent e4eedcb9a4
commit 2100733244
5 changed files with 6 additions and 0 deletions

View file

@ -490,6 +490,7 @@ public class ModuleDetailPane extends ModulesAbstractDetailPane implements IAdap
*/
DsfServicesTracker tracker = new DsfServicesTracker(DsfDebugUIPlugin.getBundleContext(), fDmc.getSessionId());
IModules service = tracker.getService(IModules.class);
tracker.dispose();
if (service == null) {
rm .setStatus(new Status(IStatus.ERROR, DsfDebugUIPlugin.PLUGIN_ID, IDsfStatusConstants.INVALID_STATE, "Service unavailable", null)); //$NON-NLS-1$
rm.done();

View file

@ -549,6 +549,7 @@ public class NumberFormatDetailPane implements IDetailPane, IAdaptable, IPropert
}
}
}
tracker.dispose();
/*
* We need to wait until all the values are in. This causes the work

View file

@ -199,6 +199,7 @@ public class MIBreakpointsTest extends BaseTestCase {
fRunControl.getSession().removeServiceEventListener(MIBreakpointsTest.this);
fBreakpointService = null;
fRunControl = null;
fServicesTracker.dispose();
fServicesTracker = null;
clearEventCounters();

View file

@ -85,6 +85,7 @@ public class MIRegistersTest extends BaseTestCase {
@After
public void tearDown() {
fServicesTracker.dispose();
fRegService = null;
}

View file

@ -71,6 +71,8 @@ public class SyncUtil {
fRunControl = tracker.getService(MIRunControl.class);
fStack = tracker.getService(MIStack.class);
fExpressions = tracker.getService(IExpressions.class);
tracker.dispose();
}
public static MIStoppedEvent SyncStep(final StepType stepType, int numSteps) throws Throwable {