remember to close file descriptor in file thread

This commit is contained in:
2024-08-29 00:43:51 +01:00
parent eb13636993
commit 1fdd4f33ec
2 changed files with 6 additions and 2 deletions

BIN
dotscape

Binary file not shown.

View File

@@ -39,8 +39,12 @@ struct
| [] => ()
fun saveTriangles triangles =
let val io = TextIO.openOut filename
in helpSaveTriangles (triangles, io)
let
val io = TextIO.openOut filename
val _ = helpSaveTriangles (triangles, io)
val _ = TextIO.closeOut io
in
()
end
fun run fileMailbox =