From 96ab05e89ff7d4f9f2865b04d3b7bf2b489b009f Mon Sep 17 00:00:00 2001 From: Travis Lange Date: Tue, 8 Oct 2024 14:06:45 -0400 Subject: [PATCH] clear addon_name_to_plugin ater unload_editor_addons because of memdelete --- editor/editor_node.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index d88fb134f16..7b2e33376ce 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -3378,6 +3378,8 @@ void EditorNode::unload_editor_addons() { remove_editor_plugin(E.value, false); memdelete(E.value); } + + addon_name_to_plugin.clear(); } void EditorNode::_discard_changes(const String &p_str) {