handle distinct nil more rigorously (#5180)
This commit is contained in:
parent
74bb4b1411
commit
0be5b5b8f2
|
@ -140,7 +140,7 @@ type
|
|||
template disposeSafe(s: untyped): untyped =
|
||||
if distinctBase(s) != nil:
|
||||
s.dispose()
|
||||
s = nil
|
||||
s = typeof(s)(nil)
|
||||
|
||||
proc initHeadersStore(
|
||||
backend: SqStoreRef,
|
||||
|
|
Loading…
Reference in New Issue