Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2010-05-19 13:18:20 +0000
committerDarin Wright2010-05-19 13:18:20 +0000
commit5df5921b3c3350803b4a5064b1c78ba6f46a6d01 (patch)
tree64c6f9c3dd2c2ed5de2359293c5e59b009be9993 /org.eclipse.debug.ui/ui/org
parent81258d208d0574bd7ae09cb46a5c45744ea33c0c (diff)
downloadeclipse.platform.debug-5df5921b3c3350803b4a5064b1c78ba6f46a6d01.tar.gz
eclipse.platform.debug-5df5921b3c3350803b4a5064b1c78ba6f46a6d01.tar.xz
eclipse.platform.debug-5df5921b3c3350803b4a5064b1c78ba6f46a6d01.zip
Bug 255444 - Launching a debug session can prematurely remove the previous terminating Launch, leading to significant leaks
Diffstat (limited to 'org.eclipse.debug.ui/ui/org')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/update/LaunchProxy.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/update/LaunchProxy.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/update/LaunchProxy.java
index 5db6cbb17..0d6908bfd 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/update/LaunchProxy.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/update/LaunchProxy.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 IBM Corporation and others.
+ * Copyright (c) 2005, 2010 IBM Corporation 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
@@ -83,6 +83,7 @@ public class LaunchProxy extends AbstractModelProxy implements ILaunchesListener
for (int i = 0; i < launches.length; i++) {
if (launches[i] == fLaunch) {
fireDelta(IModelDelta.STATE | IModelDelta.CONTENT | IModelDelta.UNINSTALL);
+ break;
}
}
}
@@ -91,6 +92,12 @@ public class LaunchProxy extends AbstractModelProxy implements ILaunchesListener
* @see org.eclipse.debug.core.ILaunchesListener#launchesRemoved(org.eclipse.debug.core.ILaunch[])
*/
public void launchesRemoved(ILaunch[] launches) {
+ for (int i = 0; i < launches.length; i++) {
+ if (launches[i] == fLaunch) {
+ fireDelta(IModelDelta.UNINSTALL);
+ break;
+ }
+ }
}
/* (non-Javadoc)
@@ -107,6 +114,7 @@ public class LaunchProxy extends AbstractModelProxy implements ILaunchesListener
if (launches[i] == fLaunch) {
fireDelta(IModelDelta.STATE | IModelDelta.CONTENT);
installModelProxies();
+ break;
}
}
}

Back to the top