mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 16:23:14 +02:00
core: fix crash when deleting a bar that has no items (issue #2138)
This commit is contained in:
@@ -788,6 +788,13 @@ gui_bar_set_items_array (struct t_gui_bar *bar, const char *items)
|
||||
&bar->items_suffix[i][j]);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
bar->items_buffer[i] = NULL;
|
||||
bar->items_prefix[i] = NULL;
|
||||
bar->items_name[i] = NULL;
|
||||
bar->items_suffix[i] = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
string_free_split (tmp_array);
|
||||
|
||||
Reference in New Issue
Block a user