mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
term: free vt.osc8.uri when destroying a terminal
Free vt.osc8.uri in term_destroy(), in the off chance, that the client application emitted an un-terminated OSC-8 URI.
This commit is contained in:
parent
a88a86f797
commit
37245fe4e6
1 changed files with 2 additions and 0 deletions
|
|
@ -1430,6 +1430,7 @@ term_destroy(struct terminal *term)
|
|||
mtx_unlock(&term->render.workers.lock);
|
||||
|
||||
free(term->vt.osc.data);
|
||||
free(term->vt.osc8.uri);
|
||||
grid_free(&term->normal);
|
||||
grid_free(&term->alt);
|
||||
|
||||
|
|
@ -1679,6 +1680,7 @@ term_reset(struct terminal *term, bool hard)
|
|||
free(term->vt.osc.data);
|
||||
memset(&term->vt, 0, sizeof(term->vt));
|
||||
term->vt.state = 0; /* GROUND */
|
||||
|
||||
term->vt.osc8.begin = (struct coord){-1, -1};
|
||||
free(term->vt.osc8.uri);
|
||||
term->vt.osc8.uri = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue