fixes #11844
This commit is contained in:
parent
65d1140d11
commit
7024bb800c
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ proc nimRawDispose(p: pointer) {.compilerRtl.} =
|
||||||
dealloc(p -! sizeof(RefHeader))
|
dealloc(p -! sizeof(RefHeader))
|
||||||
if allocs > 0:
|
if allocs > 0:
|
||||||
when hasThreadSupport:
|
when hasThreadSupport:
|
||||||
atomicDec allocs
|
discard atomicDec(allocs)
|
||||||
else:
|
else:
|
||||||
dec allocs
|
dec allocs
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue