1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

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

This commit is contained in:
Sébastien Helleu
2024-06-27 18:55:01 +02:00
parent 486ea8837a
commit b1a4cd3fab
2 changed files with 8 additions and 0 deletions
+1
View File
@@ -15,6 +15,7 @@
=== Fixed
* python: fix crash on quit with Python 3.12 (issue #2046, issue #2126)
* core: fix crash when deleting a bar that has no items (issue #2138)
[[v4.3.3]]
== Version 4.3.3 (2024-06-22)
+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);