diff options
author | Yuri Sizov <yuris@humnom.net> | 2023-09-27 19:08:04 +0200 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-09-27 19:08:04 +0200 |
commit | 46e48c5a3defbad502c1ac3f4d55869c409075a2 (patch) | |
tree | fea9bb824d1acd6053160f010cc118f19d3c340d | |
parent | aa82cccc41a0fc1b1f9b6cfa4b5d93635ea1b20b (diff) | |
parent | 5e3229b7ed1c9a1a0eeb9db5b0e8b2fc9a8d438d (diff) | |
download | redot-engine-46e48c5a3defbad502c1ac3f4d55869c409075a2.tar.gz |
Merge pull request #82442 from YuriSizov/theme-editor-release-me-from-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
-rw-r--r-- | editor/plugins/theme_editor_plugin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/theme_editor_plugin.cpp b/editor/plugins/theme_editor_plugin.cpp index 3ac1c0d559..821d8151a4 100644 --- a/editor/plugins/theme_editor_plugin.cpp +++ b/editor/plugins/theme_editor_plugin.cpp @@ -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()); } |