1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 20:36:38 +02:00

lua: fix crash when unloading a script without pointer to interpreter

This commit is contained in:
Sebastien Helleu
2012-06-10 22:32:11 +02:00
parent 58918e2eeb
commit e25909878e
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -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);
}
/*