From 627ca7f30e197477571c6fe75235b00061f41eb6 Mon Sep 17 00:00:00 2001 From: George Marques Date: Wed, 21 Oct 2020 20:27:44 -0300 Subject: [PATCH] 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. --- modules/gdscript/gdscript_analyzer.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index 794a4293f1a..320778c6357 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -3370,7 +3370,6 @@ Error GDScriptAnalyzer::resolve_program() { } depended_parsers[E->get()]->raise_status(GDScriptParserRef::FULLY_SOLVED); } - depended_parsers.clear(); return parser->errors.empty() ? OK : ERR_PARSE_ERROR; }