Fix leak when closing theme editor preview tabs

This commit is contained in:
Yuri Sizov 2023-09-27 15:29:20 +02:00
parent ec62b8a3ee
commit 5e3229b7ed
1 changed files with 2 additions and 0 deletions

View File

@ -3583,6 +3583,8 @@ void ThemeEditor::_remove_preview_tab(int p_tab) {
}
preview_tabs_content->remove_child(preview_tab);
preview_tab->queue_free();
preview_tabs->remove_tab(p_tab);
_change_preview_tab(preview_tabs->get_current_tab());
}