From 6e45827caae651842e5da37123336654032da9aa Mon Sep 17 00:00:00 2001 From: Bart van Helvert Date: Mon, 20 Jan 2025 18:19:25 +0100 Subject: [PATCH] [java] Properly dispose bytecode viewer toolwindow content #IDEA-365972 Fixed GitOrigin-RevId: 0d0fcfd9beb44b403d5066b8703133765d6057d8 --- .../src/com/intellij/byteCodeViewer/ShowBytecodeAction.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/ByteCodeViewer/src/com/intellij/byteCodeViewer/ShowBytecodeAction.kt b/plugins/ByteCodeViewer/src/com/intellij/byteCodeViewer/ShowBytecodeAction.kt index b570fb02565e..8ac88e0bbaee 100644 --- a/plugins/ByteCodeViewer/src/com/intellij/byteCodeViewer/ShowBytecodeAction.kt +++ b/plugins/ByteCodeViewer/src/com/intellij/byteCodeViewer/ShowBytecodeAction.kt @@ -38,6 +38,7 @@ internal class ShowBytecodeAction : AnAction() { description = clsFile.presentableUrl } toolWindow.contentManager.addContent(content) + content.setDisposer(panel) toolWindow.contentManager.setSelectedContent(content) toolWindow.setAdditionalGearActions(createActionGroup()) toolWindow.activate(null)