mirror of
https://github.com/dlang/phobos.git
synced 2025-05-09 13:02:30 +03:00
Do not add Impl._count
to GC roots
This commit is contained in:
parent
c838ee3a5f
commit
5c63cc738e
1 changed files with 1 additions and 1 deletions
|
@ -2500,7 +2500,7 @@ if (!is(T == class))
|
|||
_store = cast(Impl*) enforce(malloc(Impl.sizeof));
|
||||
if (hasIndirections!T)
|
||||
{
|
||||
GC.addRange(&_store._payload, Impl.sizeof);
|
||||
GC.addRange(&_store._payload, T.sizeof);
|
||||
}
|
||||
emplace(&_store._payload, args);
|
||||
_store._count = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue