1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 07:16:37 +02:00

core: fix crash when deleting a bar that has no items (closes #2138)

This commit is contained in:
Sébastien Helleu
2024-06-27 18:52:12 +02:00
parent 85c7494dc7
commit c6a4ffb1a7
2 changed files with 8 additions and 0 deletions
+1
View File
@@ -29,6 +29,7 @@
### Fixed
- python: fix crash on quit with Python 3.12 ([#2046](https://github.com/weechat/weechat/issues/2046), [#2126](https://github.com/weechat/weechat/issues/2126))
- core: fix crash when deleting a bar that has no items ([#2138](https://github.com/weechat/weechat/issues/2138))
- irc, xfer: fix display of input prompt in IRC private buffers and DCC chat buffers ([#2128](https://github.com/weechat/weechat/issues/2128))
- core: apply buffer properties (options weechat.buffer.*) when a buffer name is changed
- irc: fix property "short_name" of channel buffer when the joined channel has a different case than the `/join` command
+7
View File
@@ -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);