mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 16:23:14 +02:00
core: fix crash on plugin reload when using musl libs (closes #2052)
This commit is contained in:
@@ -768,6 +768,7 @@ buflist_bar_item_end ()
|
||||
for (i = 0; i < BUFLIST_BAR_NUM_ITEMS; i++)
|
||||
{
|
||||
weechat_bar_item_remove (buflist_bar_item_buflist[i]);
|
||||
buflist_bar_item_buflist[i] = NULL;
|
||||
}
|
||||
|
||||
weechat_hashtable_free (buflist_hashtable_pointers);
|
||||
|
||||
@@ -844,6 +844,7 @@ buflist_config_free ()
|
||||
int i;
|
||||
|
||||
weechat_config_free (buflist_config_file);
|
||||
buflist_config_file = NULL;
|
||||
|
||||
if (buflist_config_signals_refresh)
|
||||
buflist_config_free_signals_refresh ();
|
||||
@@ -859,9 +860,18 @@ buflist_config_free ()
|
||||
}
|
||||
|
||||
if (buflist_config_format_buffer_eval)
|
||||
{
|
||||
free (buflist_config_format_buffer_eval);
|
||||
buflist_config_format_buffer_eval = NULL;
|
||||
}
|
||||
if (buflist_config_format_buffer_current_eval)
|
||||
{
|
||||
free (buflist_config_format_buffer_current_eval);
|
||||
buflist_config_format_buffer_current_eval = NULL;
|
||||
}
|
||||
if (buflist_config_format_hotlist_eval)
|
||||
{
|
||||
free (buflist_config_format_hotlist_eval);
|
||||
buflist_config_format_hotlist_eval = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -534,5 +534,12 @@ weechat_plugin_end (struct t_weechat_plugin *plugin)
|
||||
buflist_config_write ();
|
||||
buflist_config_free ();
|
||||
|
||||
buflist_hdata_window = NULL;
|
||||
buflist_hdata_buffer = NULL;
|
||||
buflist_hdata_hotlist = NULL;
|
||||
buflist_hdata_bar = NULL;
|
||||
buflist_hdata_bar_item = NULL;
|
||||
buflist_hdata_bar_window = NULL;
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user