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(DSymbol).destroy(symbol);
|
||||||
typeid(Scope).destroy(scope_);
|
typeid(Scope).destroy(scope_);
|
||||||
foreach(ufcsSym; ufcsSymbols){
|
// don't destroy ufcsSymbols contents since we don't own the values
|
||||||
typeid(DSymbol).destroy(ufcsSym);
|
// array itself is GC-allocated, so we just let it live
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DSymbol* symbol;
|
DSymbol* symbol;
|
||||||
|
|
Loading…
Reference in New Issue