Skip to content

Commit

Permalink
Merge pull request #82442 from YuriSizov/theme-editor-release-me-from…
Browse files Browse the repository at this point in the history
…-this-nightmare-where-i-try-to-escape-the-editor-but-it-doesnt-let-me-go-and-i-keep-running-and-running-and-eventually-a-little-leak-comes-out

Fix leak when closing theme editor preview tabs
  • Loading branch information
YuriSizov committed Sep 27, 2023
2 parents aa82ccc + 5e3229b commit 46e48c5
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 46e48c5

Please sign in to comment.