diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2018-10-01 19:37:18 +0800 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-10-23 18:46:01 +0200 |
commit | a155151fdd3bbd4a82288430a4d61b86d85d53c3 (patch) | |
tree | 25a94ff5da861043e28d55ba85bbc918dd4500fe /source/tools | |
parent | faf47b94e24314d74907f3f6bc874105f2c962ed (diff) | |
download | mupdf-a155151fdd3bbd4a82288430a4d61b86d85d53c3.tar.xz |
Drop state and context upon exception.
Diffstat (limited to 'source/tools')
-rw-r--r-- | source/tools/murun.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/tools/murun.c b/source/tools/murun.c index 881438ec..a808bff7 100644 --- a/source/tools/murun.c +++ b/source/tools/murun.c @@ -4899,7 +4899,11 @@ int murun_main(int argc, char **argv) } js_setglobal(J, "scriptArgs"); if (js_dofile(J, argv[1])) + { + js_freestate(J); + fz_drop_context(ctx); return 1; + } } else { char line[256]; fputs(PS1, stdout); |