소스 검색

Prevent crash in specific situation of removing a plugin, fixes #5019

Juan Linietsky 9 년 전
부모
커밋
e8209b9c5c
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      tools/editor/editor_node.cpp

+ 1 - 0
tools/editor/editor_node.cpp

@@ -3089,6 +3089,7 @@ void EditorNode::set_addon_plugin_enabled(const String& p_addon,bool p_enabled)
 	if (!p_enabled) {
 	if (!p_enabled) {
 
 
 		EditorPlugin *addon = plugin_addons[p_addon];
 		EditorPlugin *addon = plugin_addons[p_addon];
+		editor_data.remove_editor_plugin( addon );
 		memdelete(addon); //bye
 		memdelete(addon); //bye
 		plugin_addons.erase(p_addon);
 		plugin_addons.erase(p_addon);
 		_update_addon_config();
 		_update_addon_config();