handle distinct nil more rigorously (#5180)

This commit is contained in:
tersec 2023-07-12 17:33:19 +00:00 committed by GitHub
parent 74bb4b1411
commit 0be5b5b8f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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,