Merge pull request #93292 from rune-scape/singleton-cleanup

Fix missing cleanup and null checks for various singletons
This commit is contained in:
Rémi Verschelde 2024-06-18 14:09:01 +02:00
commit 76a8fa6fed
No known key found for this signature in database
GPG key ID: C3336907360768E1
6 changed files with 18 additions and 4 deletions

View file

@ -3539,7 +3539,7 @@ void EditorNode::add_extension_editor_plugin(const StringName &p_class_name) {
void EditorNode::remove_extension_editor_plugin(const StringName &p_class_name) {
// If we're exiting, the editor plugins will get cleaned up anyway, so don't do anything.
if (singleton->exiting) {
if (!singleton || singleton->exiting) {
return;
}