1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-07 10:13:12 +02:00

guile: fix module used after unload of a script

This commit is contained in:
Sebastien Helleu
2014-02-17 22:01:14 +01:00
parent be159f42a8
commit 7b37bf701e
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -495,6 +495,9 @@ weechat_guile_unload (struct t_plugin_script *script)
if (interpreter)
weechat_guile_catch (scm_gc_unprotect_object, interpreter);
if (guile_current_script)
scm_set_current_module ((SCM)(guile_current_script->interpreter));
(void) weechat_hook_signal_send ("guile_script_unloaded",
WEECHAT_HOOK_SIGNAL_STRING, filename);
if (filename)