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

[291393] Memory leak in RequestMonitor

This commit is contained in:
Marc Khouzam 2009-10-05 18:00:54 +00:00
parent 3aa32eb9d3
commit 1353648eff

View file

@ -252,6 +252,13 @@ public class RequestMonitor extends DsfExecutable {
throw new IllegalStateException("RequestMonitor: " + this + ", done() method called more than once"); //$NON-NLS-1$//$NON-NLS-2$
}
fDone = true;
// This RequestMonitor is done, it can no longer be canceled.
// We must clear the list of cancelListeners because it causes a
// circular reference between parent and child requestMonitor, which
// causes a memory leak.
fCancelListeners = null;
try {
fExecutor.execute(new DsfRunnable() {
public void run() {