From 1ba308c26c7a728558f3a47545199bd832ffcbdf Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 20 Jun 2000 09:20:45 +0000 Subject: [PATCH] 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 --- src/fe-text/gui-printtext.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/fe-text/gui-printtext.c b/src/fe-text/gui-printtext.c index 564713dc..e80afa19 100644 --- a/src/fe-text/gui-printtext.c +++ b/src/fe-text/gui-printtext.c @@ -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) {