parent
67afe72e9c
commit
833035bacd
9 changed files with 85 additions and 41 deletions
|
|
@ -248,9 +248,7 @@ proc genericReset(dest: pointer, mt: PNimType) =
|
|||
unsureAsgnRef(cast[PPointer](dest), nil)
|
||||
of tySequence:
|
||||
when defined(nimSeqsV2):
|
||||
var s = cast[ptr NimSeqV2Reimpl](dest)
|
||||
if s.p != nil:
|
||||
deallocShared(s.p)
|
||||
frees(cast[ptr NimSeqV2Reimpl](dest)[])
|
||||
zeroMem(dest, mt.size)
|
||||
else:
|
||||
unsureAsgnRef(cast[PPointer](dest), nil)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue