diff --git a/serialization.nim b/serialization.nim index 70f05e7..7eb51b5 100644 --- a/serialization.nim +++ b/serialization.nim @@ -89,6 +89,7 @@ template loadFile*(Format: distinct type, params: varargs[untyped]): auto = mixin init, ReaderType var stream = openFile(filename) + defer: stream.close() # TODO: destructors # TODO: # Remove this when statement once the following bug is fixed: