mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
mem leak
This commit is contained in:
@@ -279,6 +279,7 @@ public class StructureViewWrapperImpl implements StructureViewWrapper, Disposabl
|
||||
myModuleStructureComponent = new ModuleStructureComponent(module);
|
||||
focusedComponent = hadFocus ? IdeFocusTraversalPolicy.getPreferredFocusedComponent(myModuleStructureComponent) : null;
|
||||
createSinglePanel(myModuleStructureComponent.getComponent());
|
||||
Disposer.register(this, myModuleStructureComponent);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -293,7 +294,7 @@ public class StructureViewWrapperImpl implements StructureViewWrapper, Disposabl
|
||||
final StructureViewBuilder structureViewBuilder = editor.getStructureViewBuilder();
|
||||
if (structureViewBuilder != null) {
|
||||
myStructureView = structureViewBuilder.createStructureView(editor, myProject);
|
||||
|
||||
Disposer.register(this, myStructureView);
|
||||
updateHeaderActions(myStructureView);
|
||||
|
||||
if (myStructureView instanceof StructureView.Scrollable) {
|
||||
|
||||
Reference in New Issue
Block a user