mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
Do nothing in cleanup_smjs is smjs_ctx is NULL.
This commit is contained in:
parent
11c90e7205
commit
fcd13e35cb
@ -127,6 +127,8 @@ init_smjs(struct module *module)
|
||||
void
|
||||
cleanup_smjs(struct module *module)
|
||||
{
|
||||
if (!smjs_ctx) return;
|
||||
|
||||
JS_DestroyContext(smjs_ctx);
|
||||
JS_DestroyRuntime(smjs_rt);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user