osc: allocate data buffer dynamically

This commit is contained in:
Daniel Eklöf 2019-07-19 08:59:35 +02:00
parent 95ff37afd7
commit 153628a217
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 30 additions and 4 deletions

1
main.c
View file

@ -818,6 +818,7 @@ out:
if (term.kbd.xkb != NULL)
xkb_context_unref(term.kbd.xkb);
free(term.vt.osc.data);
for (int row = 0; row < term.normal.num_rows; row++)
grid_row_free(term.normal.rows[row]);
free(term.normal.rows);