fix bug in end function calls for plugins/scripts
This commit is contained in:
parent
87aa03b2cf
commit
524fbba036
@ -1706,7 +1706,7 @@ weechat_lua_unload (t_weechat_plugin *plugin, t_plugin_script *script)
|
||||
script->name);
|
||||
|
||||
if (script->shutdown_func[0])
|
||||
weechat_lua_exec (plugin, script, script->shutdown_func, "", "", "");
|
||||
weechat_lua_exec (plugin, script, script->shutdown_func, NULL, NULL, NULL);
|
||||
|
||||
lua_close (script->interpreter);
|
||||
|
||||
|
@ -1501,7 +1501,7 @@ weechat_perl_unload (t_weechat_plugin *plugin, t_plugin_script *script)
|
||||
#endif
|
||||
|
||||
if (script->shutdown_func[0])
|
||||
weechat_perl_exec (plugin, script, script->shutdown_func, "", "", "");
|
||||
weechat_perl_exec (plugin, script, script->shutdown_func, NULL, NULL, NULL);
|
||||
|
||||
#ifndef MULTIPLICITY
|
||||
if (script->interpreter)
|
||||
|
@ -1440,7 +1440,7 @@ weechat_python_unload (t_weechat_plugin *plugin, t_plugin_script *script)
|
||||
script->name);
|
||||
|
||||
if (script->shutdown_func[0])
|
||||
weechat_python_exec (plugin, script, script->shutdown_func, "", "", "");
|
||||
weechat_python_exec (plugin, script, script->shutdown_func, NULL, NULL, NULL);
|
||||
|
||||
PyThreadState_Swap (script->interpreter);
|
||||
Py_EndInterpreter (script->interpreter);
|
||||
|
@ -1706,7 +1706,7 @@ weechat_lua_unload (t_weechat_plugin *plugin, t_plugin_script *script)
|
||||
script->name);
|
||||
|
||||
if (script->shutdown_func[0])
|
||||
weechat_lua_exec (plugin, script, script->shutdown_func, "", "", "");
|
||||
weechat_lua_exec (plugin, script, script->shutdown_func, NULL, NULL, NULL);
|
||||
|
||||
lua_close (script->interpreter);
|
||||
|
||||
|
@ -1501,7 +1501,7 @@ weechat_perl_unload (t_weechat_plugin *plugin, t_plugin_script *script)
|
||||
#endif
|
||||
|
||||
if (script->shutdown_func[0])
|
||||
weechat_perl_exec (plugin, script, script->shutdown_func, "", "", "");
|
||||
weechat_perl_exec (plugin, script, script->shutdown_func, NULL, NULL, NULL);
|
||||
|
||||
#ifndef MULTIPLICITY
|
||||
if (script->interpreter)
|
||||
|
@ -1440,7 +1440,7 @@ weechat_python_unload (t_weechat_plugin *plugin, t_plugin_script *script)
|
||||
script->name);
|
||||
|
||||
if (script->shutdown_func[0])
|
||||
weechat_python_exec (plugin, script, script->shutdown_func, "", "", "");
|
||||
weechat_python_exec (plugin, script, script->shutdown_func, NULL, NULL, NULL);
|
||||
|
||||
PyThreadState_Swap (script->interpreter);
|
||||
Py_EndInterpreter (script->interpreter);
|
||||
|
Loading…
x
Reference in New Issue
Block a user