1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-23 00:03:53 +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()); DsfServicesTracker tracker = new DsfServicesTracker(DsfDebugUIPlugin.getBundleContext(), fDmc.getSessionId());
IModules service = tracker.getService(IModules.class); IModules service = tracker.getService(IModules.class);
tracker.dispose();
if (service == null) { if (service == null) {
rm .setStatus(new Status(IStatus.ERROR, DsfDebugUIPlugin.PLUGIN_ID, IDsfStatusConstants.INVALID_STATE, "Service unavailable", null)); //$NON-NLS-1$ rm .setStatus(new Status(IStatus.ERROR, DsfDebugUIPlugin.PLUGIN_ID, IDsfStatusConstants.INVALID_STATE, "Service unavailable", null)); //$NON-NLS-1$
rm.done(); 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 * 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); fRunControl.getSession().removeServiceEventListener(MIBreakpointsTest.this);
fBreakpointService = null; fBreakpointService = null;
fRunControl = null; fRunControl = null;
fServicesTracker.dispose();
fServicesTracker = null; fServicesTracker = null;
clearEventCounters(); clearEventCounters();

View file

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

View file

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