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:
parent
3aa32eb9d3
commit
1353648eff
1 changed files with 7 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue