diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-12-15 22:53:51 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-12-15 22:53:51 +0100 |
commit | 75dc8b9d6c2c2f816ecbeffa4d4b048ebc2d5f58 (patch) | |
tree | 0ef749137348dca1ee0acd2fdd07184b2cf835f8 /src/plugins/guile/weechat-guile.c | |
parent | 07fbd309487b7de977e5798e67e70de1bd2fed8a (diff) | |
download | weechat-75dc8b9d6c2c2f816ecbeffa4d4b048ebc2d5f58.zip |
core: fix crash on plugin reload when using musl libs (closes #2052)
Diffstat (limited to 'src/plugins/guile/weechat-guile.c')
-rw-r--r-- | src/plugins/guile/weechat-guile.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/plugins/guile/weechat-guile.c b/src/plugins/guile/weechat-guile.c index 678cbd5cd..c93f16eb4 100644 --- a/src/plugins/guile/weechat-guile.c +++ b/src/plugins/guile/weechat-guile.c @@ -1258,6 +1258,11 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[]) weechat_guile_plugin = plugin; + guile_quiet = 0; + guile_eval_mode = 0; + guile_eval_send_input = 0; + guile_eval_exec_commands = 0; + /* set interpreter name and version */ weechat_hashtable_set (plugin->variables, "interpreter_name", plugin->name); @@ -1354,12 +1359,22 @@ weechat_plugin_end (struct t_weechat_plugin *plugin) /* free some data */ if (guile_action_install_list) + { free (guile_action_install_list); + guile_action_install_list = NULL; + } if (guile_action_remove_list) + { free (guile_action_remove_list); + guile_action_remove_list = NULL; + } if (guile_action_autoload_list) + { free (guile_action_autoload_list); + guile_action_autoload_list = NULL; + } weechat_string_dyn_free (guile_buffer_output, 1); + guile_buffer_output = NULL; return WEECHAT_RC_OK; } |