mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02: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:
parent
49c4506bd8
commit
1ba308c26c
1 changed files with 4 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue