@Override
        public void detach() {
            super.detach();

            if (detached) {
                resultsTab.dispose();
                resultsTab = null;
            }
        }
Build and update icon and title
plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/SQLEditor.java