leak: register disposables; clear maps on dispose

This commit is contained in:
anna
2012-03-15 11:29:55 +01:00
parent 06f28c4667
commit 123e3c8c4c
2 changed files with 4 additions and 1 deletions
@@ -1053,6 +1053,9 @@ public class RunnerContentUi implements ContentUI, Disposable, CellTransform.Fac
if (myOriginal != null) {
myOriginal.myChildren.remove(this);
}
myMinimizedButtonsPlaceholder.clear();
myCommonActionsPlaceholder.clear();
myContextActions.clear();
}
public void restoreLayout() {
@@ -60,7 +60,7 @@ public class RunnerLayoutUiImpl implements Disposable.Parent, RunnerLayoutUi, La
myContentUI = new RunnerContentUi(project, this, ActionManager.getInstance(), IdeFocusManager.getInstance(project), myLayout,
runnerTitle + " - " + sessionName);
Disposer.register(this, myContentUI);
myContentPanel = new MyContent();
myViewsContentManager = getContentFactory().createContentManager(myContentUI.getContentUI(), false, project);