fix destroying of unowned symbols
This commit is contained in:
parent
a6eead7c81
commit
c196130c78
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue