parent
67afe72e9c
commit
833035bacd
9 changed files with 85 additions and 41 deletions
|
|
@ -15,3 +15,10 @@ type
|
|||
NimSeqV2Reimpl = object
|
||||
len: int
|
||||
p: ptr NimSeqPayloadReimpl
|
||||
|
||||
template frees(s: NimSeqV2Reimpl) =
|
||||
if s.p != nil and (s.p.cap and strlitFlag) != strlitFlag:
|
||||
when compileOption("threads"):
|
||||
deallocShared(s.p)
|
||||
else:
|
||||
dealloc(s.p)
|
||||
Loading…
Add table
Add a link
Reference in a new issue