瀏覽代碼

GDScript: Don't clear depended parsers too soon

It can wait until the analyzer itself is destructed, otherwise other
phases might be using freed parsers.
George Marques 4 年之前
父節點
當前提交
627ca7f30e
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      modules/gdscript/gdscript_analyzer.cpp

+ 0 - 1
modules/gdscript/gdscript_analyzer.cpp

@@ -3370,7 +3370,6 @@ Error GDScriptAnalyzer::resolve_program() {
 		}
 		}
 		depended_parsers[E->get()]->raise_status(GDScriptParserRef::FULLY_SOLVED);
 		depended_parsers[E->get()]->raise_status(GDScriptParserRef::FULLY_SOLVED);
 	}
 	}
-	depended_parsers.clear();
 	return parser->errors.empty() ? OK : ERR_PARSE_ERROR;
 	return parser->errors.empty() ? OK : ERR_PARSE_ERROR;
 }
 }