version 1.246, 2017/12/19 15:00:39 |
version 1.247, 2018/02/05 08:21:54 |
|
|
c->tty.sx = 80; |
c->tty.sx = 80; |
c->tty.sy = 24; |
c->tty.sy = 24; |
|
|
screen_init(&c->status, c->tty.sx, 1, 0); |
screen_init(&c->status.status, c->tty.sx, 1, 0); |
|
|
c->message_string = NULL; |
c->message_string = NULL; |
TAILQ_INIT(&c->message_log); |
TAILQ_INIT(&c->message_log); |
|
|
if (c->stderr_data != c->stdout_data) |
if (c->stderr_data != c->stdout_data) |
evbuffer_free(c->stderr_data); |
evbuffer_free(c->stderr_data); |
|
|
if (event_initialized(&c->status_timer)) |
if (event_initialized(&c->status.timer)) |
evtimer_del(&c->status_timer); |
evtimer_del(&c->status.timer); |
screen_free(&c->status); |
screen_free(&c->status.status); |
if (c->old_status != NULL) { |
if (c->status.old_status != NULL) { |
screen_free(c->old_status); |
screen_free(c->status.old_status); |
free(c->old_status); |
free(c->status.old_status); |
} |
} |
|
|
free(c->title); |
free(c->title); |