Fix memory leak for old GC

This commit is contained in:
2020-06-08 16:10:47 +02:00
parent 7fd48da51e
commit 3a29ffad57
2 changed files with 4 additions and 2 deletions

View File

@@ -120,7 +120,9 @@ proc updateImage(image: Image): bool =
return false
proc timedUpdate(image: Image): bool =
discard updateImage(image);
discard updateImage(image)
# Force garbage collection now. Otherwise the RAM will fill up until the GC is triggered.
GC_fullCollect()
updateTimeout = int(timeoutAdd(uint32(args.timeout), timedUpdate, image))
return false

View File

@@ -1,3 +1,3 @@
threads:on
d:ssl
gc:arc
# gc:arc