about summary refs log tree commit diff stats
path: root/src/local/client.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-07-10 02:26:32 +0200
committerbptato <nincsnevem662@gmail.com>2024-07-10 02:26:32 +0200
commitf73db5441b827de99007b87a10484271c9c26a67 (patch)
tree3d176d0d045a442627b86b792cd40c8ae4fa5d44 /src/local/client.nim
parent5e78cf0100e762593168bb94e2438d1cead53e45 (diff)
downloadchawan-f73db5441b827de99007b87a10484271c9c26a67.tar.gz
timeout: fix jsvalue leak
Diffstat (limited to 'src/local/client.nim')
-rw-r--r--src/local/client.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/local/client.nim b/src/local/client.nim
index ebe9910d..7a218a11 100644
--- a/src/local/client.nim
+++ b/src/local/client.nim
@@ -116,6 +116,7 @@ proc cleanup(client: Client) =
       JS_FreeValue(client.jsctx, val)
     for fn in client.config.jsvfns:
       JS_FreeValue(client.jsctx, fn)
+    client.timeouts.clearAll()
     assert not client.inEval
     client.jsctx.free()
     client.jsrt.free()