Hello,
this patch changes the shutdown order. js_finalise() must be called
after gui_quit, otherwise, gui_quit() will try to free javascript
context belonging to a javascript runtime which is already shutdown.
(gui_quit closes / destroys all open windows, which means it also frees
the js contexts at that point).
Another approach would be to collect all available js context before
calling JS_DestroyRuntime().
Greets,
Ole
Show replies by date