1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 13:56:37 +02:00

Fix bug with window separator (possible crash)

This commit is contained in:
Sebastien Helleu
2009-03-21 18:21:42 +01:00
parent 7d53e28034
commit ebc4e04333
+3
View File
@@ -421,7 +421,10 @@ void
gui_window_draw_separator (struct t_gui_window *window)
{
if (GUI_WINDOW_OBJECTS(window)->win_separator)
{
delwin (GUI_WINDOW_OBJECTS(window)->win_separator);
GUI_WINDOW_OBJECTS(window)->win_separator = NULL;
}
if (window->win_x > gui_bar_root_get_size (NULL, GUI_BAR_POSITION_LEFT))
{