1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

Fix StringName leaks in GDExtension, core, and editor themes

This commit is contained in:
Yuri Sizov
2023-10-18 17:36:20 +02:00
parent dce1aab174
commit 582ed157b5
12 changed files with 52 additions and 13 deletions

View File

@@ -6951,6 +6951,7 @@ EditorNode::EditorNode() {
// Exporters might need the theme.
EditorColorMap::create();
EditorTheme::initialize();
theme = create_custom_theme();
DisplayServer::set_early_window_clear_color_override(true, theme->get_color(SNAME("background"), EditorStringName(Editor)));
@@ -8038,6 +8039,8 @@ EditorNode::~EditorNode() {
memdelete(progress_hb);
EditorSettings::destroy();
EditorColorMap::finish();
EditorTheme::finalize();
GDExtensionEditorPlugins::editor_node_add_plugin = nullptr;
GDExtensionEditorPlugins::editor_node_remove_plugin = nullptr;