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

fix: shutdown function was not lauched

This commit is contained in:
Emmanuel Bouthenot
2005-12-11 10:56:13 +00:00
parent 290c603321
commit acb40634b0
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -1029,6 +1029,9 @@ weechat_ruby_unload (t_weechat_plugin *plugin, t_plugin_script *script)
"Unloading Ruby script \"%s\"",
script->name);
if (script->shutdown_func[0])
weechat_ruby_exec (plugin, script, script->shutdown_func, "", "");
if (script->interpreter)
rb_gc_unregister_address (script->interpreter);