From 05ec72ae3405c89c43bf7db98db87499c4e91c5f Mon Sep 17 00:00:00 2001 From: "Vladislav.Soroka" Date: Thu, 12 Oct 2017 14:14:53 +0300 Subject: [PATCH] Dispose the build window view on the tab close --- .../compiler/impl/src/com/intellij/build/MultipleBuildsView.java | 1 + 1 file changed, 1 insertion(+) diff --git a/java/compiler/impl/src/com/intellij/build/MultipleBuildsView.java b/java/compiler/impl/src/com/intellij/build/MultipleBuildsView.java index bc1e5ef828b0..eddcba591dfb 100644 --- a/java/compiler/impl/src/com/intellij/build/MultipleBuildsView.java +++ b/java/compiler/impl/src/com/intellij/build/MultipleBuildsView.java @@ -381,6 +381,7 @@ public class MultipleBuildsView implements BuildProgressListener, Disposable { "BuildView", myToolbarActions, false).getComponent(), BorderLayout.WEST); myContent = new ContentImpl(consoleComponent, myViewManager.getViewName(), true); + Disposer.register(myContent, this); myContent.setCloseable(false); Icon contentIcon = myViewManager.getContentIcon(); if (contentIcon != null) {