Skip to content

Commit

Permalink
GDScript: Don't clear depended parsers too soon
Browse files Browse the repository at this point in the history
It can wait until the analyzer itself is destructed, otherwise other
phases might be using freed parsers.
  • Loading branch information
vnen committed Nov 26, 2020
1 parent 817fb3d commit 627ca7f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion modules/gdscript/gdscript_analyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 627ca7f

Please sign in to comment.