mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
leak: register disposables; clear maps on dispose
This commit is contained in:
@@ -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() {
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user