1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-01 03:36:26 -04:00

Do nothing in cleanup_smjs is smjs_ctx is NULL.

This commit is contained in:
Miciah Dashiel Butler Masters 2005-12-19 21:24:54 +00:00 committed by Miciah Dashiel Butler Masters
parent 11c90e7205
commit fcd13e35cb

View File

@ -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);
}