Skip to content

Commit

Permalink
Fix too many parsers getting removed
Browse files Browse the repository at this point in the history
  • Loading branch information
rune-scape committed Aug 3, 2024
1 parent 6e8fa6d commit d44d5b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/gdscript/gdscript_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,10 @@ void GDScriptParserRef::clear() {

GDScriptParserRef::~GDScriptParserRef() {
clear();

if (!abandoned) {
GDScriptCache::remove_parser(path);
MutexLock lock(GDScriptCache::singleton->mutex);
GDScriptCache::singleton->parser_map.erase(path);
}
}

Expand Down

0 comments on commit d44d5b0

Please sign in to comment.