diff options
author | bptato <nincsnevem662@gmail.com> | 2024-07-10 02:26:32 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-07-10 02:26:32 +0200 |
commit | f73db5441b827de99007b87a10484271c9c26a67 (patch) | |
tree | 3d176d0d045a442627b86b792cd40c8ae4fa5d44 /src/local/client.nim | |
parent | 5e78cf0100e762593168bb94e2438d1cead53e45 (diff) | |
download | chawan-f73db5441b827de99007b87a10484271c9c26a67.tar.gz |
timeout: fix jsvalue leak
Diffstat (limited to 'src/local/client.nim')
-rw-r--r-- | src/local/client.nim | 1 |
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() |