fix destroying of unowned symbols

This commit is contained in:
WebFreak001 2023-03-16 15:43:42 +01:00 committed by Jan Jurzitza
parent a6eead7c81
commit c196130c78
1 changed files with 2 additions and 3 deletions

View File

@ -66,9 +66,8 @@ struct ScopeSymbolPair
{
typeid(DSymbol).destroy(symbol);
typeid(Scope).destroy(scope_);
foreach(ufcsSym; ufcsSymbols){
typeid(DSymbol).destroy(ufcsSym);
}
// don't destroy ufcsSymbols contents since we don't own the values
// array itself is GC-allocated, so we just let it live
}
DSymbol* symbol;