1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-27 05:20:20 -04:00

When scrollback buffer got full and you hadn't done /LAST or /AWAY,

Irssi crashed..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@370 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-06-20 09:20:45 +00:00 committed by cras
parent 49c4506bd8
commit 1ba308c26c

View File

@ -114,9 +114,11 @@ static void remove_first_line(WINDOW_REC *window)
if (--chunk->lines == 0)
text_chunk_free(gui, chunk);
if (gui->lastlog_last_check->data == window)
if (gui->lastlog_last_check != NULL &&
gui->lastlog_last_check->data == window)
gui->lastlog_last_check = NULL;
if (gui->lastlog_last_away->data == window)
if (gui->lastlog_last_away != NULL &&
gui->lastlog_last_away->data == window)
gui->lastlog_last_away = NULL;
if (gui->startline->prev == NULL) {