[vcs-log] actually dispose log uis in beforeEditorClose

follow-up: ab7add6a9a72ddd616185a826d921ab74cbe25e8

GitOrigin-RevId: e8e871044f7eb352fc409a08493f94edb3d6df20
This commit is contained in:
Julia Beliaeva
2020-05-14 21:24:16 +00:00
committed by intellij-monorepo-bot
parent f4f4efce92
commit c26f6440b8
@@ -66,10 +66,12 @@ class VcsLogEditor(file: VcsLogFile) : FileEditorBase() {
}
fun beforeEditorClose() {
val logUis = vcsLogFile?.logUis
container.removeAll()
vcsLogFile = null
vcsLogFile?.logUis?.forEach(Disposer::dispose)
logUis?.forEach(Disposer::dispose)
}
override fun getComponent(): JComponent = container