Skip to content

Commit

Permalink
Fix leak when closing theme editor preview tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
YuriSizov committed Sep 27, 2023
1 parent ec62b8a commit 5e3229b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions editor/plugins/theme_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 5e3229b

Please sign in to comment.