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

@@ -2845,6 +2845,7 @@ ProjectManager::ProjectManager() {
}
EditorColorMap::create();
EditorTheme::initialize();
Ref<Theme> theme = create_custom_theme();
DisplayServer::set_early_window_clear_color_override(true, theme->get_color(SNAME("background"), EditorStringName(Editor)));
@@ -3297,6 +3298,9 @@ ProjectManager::~ProjectManager() {
if (EditorSettings::get_singleton()) {
EditorSettings::destroy();
}
EditorColorMap::finish();
EditorTheme::finalize();
}
void ProjectTag::_notification(int p_what) {