fix bug in end function calls for plugins/scripts

This commit is contained in:
Emmanuel Bouthenot 2006-05-17 09:59:19 +00:00
parent 87aa03b2cf
commit 524fbba036
6 changed files with 6 additions and 6 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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