diff options
author | bptato <nincsnevem662@gmail.com> | 2023-06-29 15:02:40 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-06-29 15:06:27 +0200 |
commit | 09be1d576ce815d80df1b625366de5965971430c (patch) | |
tree | 06edd19d3b8c530d85b42614d5fb4c05943e92e3 /src/display/client.nim | |
parent | 0eef1cb27a9cf8cca861ad2743a895c9382f292f (diff) | |
download | chawan-09be1d576ce815d80df1b625366de5965971430c.tar.gz |
Do not free jsrt in quit()
Free'ing jsrt triggers a QuickJS assertion, presumably because of references still existing to the global object. Needs a proper fix later, for now it's just annoying.
Diffstat (limited to 'src/display/client.nim')
-rw-r--r-- | src/display/client.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/display/client.nim b/src/display/client.nim index 869435ce..767a5e67 100644 --- a/src/display/client.nim +++ b/src/display/client.nim @@ -155,8 +155,8 @@ proc quit(client: Client, code = 0) {.jsfunc.} = JS_FreeValue(ctx, global) if client.jsctx != nil: free(client.jsctx) - if client.jsrt != nil: - free(client.jsrt) + #if client.jsrt != nil: + # free(client.jsrt) quit(code) proc feedNext(client: Client) {.jsfunc.} = |