summaryrefslogtreecommitdiff
path: root/modules/gdscript
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2020-10-21 20:27:44 -0300
committerGeorge Marques <george@gmarqu.es>2020-11-26 14:14:29 -0300
commit627ca7f30e197477571c6fe75235b00061f41eb6 (patch)
treeffb99be9d735ecfd81f8dd94022661fa4b62452e /modules/gdscript
parent817fb3d702f7bdc25879e30df68ded737f7c7d97 (diff)
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.
Diffstat (limited to 'modules/gdscript')
-rw-r--r--modules/gdscript/gdscript_analyzer.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp
index 794a4293f1..320778c635 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;
}