Fix double-free in edit functionality (double-closing file handle).

This commit is contained in:
Jonathan Bernard 2020-03-16 08:32:56 -05:00
parent a1333db427
commit fb652eee30
3 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
const PTK_VERSION* = "1.0.2"
const PTK_VERSION* = "1.0.3"

View File

@ -144,6 +144,7 @@ proc edit(mark: var Mark): void =
# notes for this timeline mark.""")
close(tempFile)
tempFile = nil
discard os.execShellCmd "$EDITOR " & tempFileName & " </dev/tty >/dev/tty"

View File

@ -1,6 +1,6 @@
# Package
version = "1.0.2"
version = "1.0.3"
author = "Jonathan Bernard"
description = "Personal Time Keeper"
license = "MIT"