diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/scripts/lua/weechat-lua.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/scripts/lua/weechat-lua.c b/src/plugins/scripts/lua/weechat-lua.c index a6f36a5e3..2b364d38e 100644 --- a/src/plugins/scripts/lua/weechat-lua.c +++ b/src/plugins/scripts/lua/weechat-lua.c @@ -410,7 +410,8 @@ weechat_lua_unload (struct t_plugin_script *script) script_remove (weechat_lua_plugin, &lua_scripts, &last_lua_script, script); - lua_close (interpreter); + if (interpreter) + lua_close (interpreter); } /* |