1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 21:36:37 +02:00

core: fix crash on plugin reload when using musl libc (issue #2052)

This commit is contained in:
Sébastien Helleu
2023-12-15 22:53:51 +01:00
parent ad66bba2f8
commit 86e1af7ab9
42 changed files with 319 additions and 5 deletions
+3
View File
@@ -1391,6 +1391,8 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
weechat_plugin = plugin;
trigger_enabled = 1;
trigger_callback_init ();
trigger_command_init ();
@@ -1427,6 +1429,7 @@ weechat_plugin_end (struct t_weechat_plugin *plugin)
trigger_free_all ();
trigger_config_free ();
trigger_callback_end ();
trigger_context_id = 0;
return WEECHAT_RC_OK;
}