Implemented free_driver() in terminfo driver

This commit is contained in:
Paul LeoNerd Evans 2008-11-09 22:38:10 +00:00
parent 20cc4b1701
commit 30a3356815
1 changed files with 5 additions and 0 deletions

View File

@ -98,6 +98,11 @@ static void stop_driver(termkey_t *tk, void *info)
static void free_driver(void *info)
{
termkey_ti *ti = info;
free(ti->seqs);
free(ti);
}
#define CHARAT(i) (tk->buffer[tk->buffstart + (i)])