mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
mem leak fix
This commit is contained in:
@@ -324,6 +324,9 @@ public abstract class DebuggerTree extends DebuggerTreeBase implements DataProvi
|
||||
}
|
||||
else {
|
||||
showMessage(session != null? session.getStateDescription() : DebuggerBundle.message("status.debug.stopped"));
|
||||
if (session == null || session.isStopped()) {
|
||||
getNodeFactory().clearHistory(); // save memory by clearing references on JDI objects
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -122,10 +122,14 @@ public class NodeManagerImpl extends NodeDescriptorFactoryImpl implements NodeMa
|
||||
}
|
||||
|
||||
public void dispose() {
|
||||
myHistories.clear();
|
||||
clearHistory();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
public void clearHistory() {
|
||||
myHistories.clear();
|
||||
}
|
||||
|
||||
private DebuggerTree getTree() {
|
||||
return myDebuggerTree;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user