mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
term: destroy: set term->window = NULL after destroying it
This fixes a crash in urls_reset() on destroy, where we tried to access an already free:d window pointer in order to destroy the jump label surfaces.
This commit is contained in:
parent
44b7758416
commit
0cbdf657a7
1 changed files with 3 additions and 1 deletions
|
|
@ -1405,8 +1405,10 @@ term_destroy(struct terminal *term)
|
|||
fdm_del(term->fdm, term->flash.fd);
|
||||
fdm_del(term->fdm, term->ptmx);
|
||||
|
||||
if (term->window != NULL)
|
||||
if (term->window != NULL) {
|
||||
wayl_win_destroy(term->window);
|
||||
term->window = NULL;
|
||||
}
|
||||
|
||||
mtx_lock(&term->render.workers.lock);
|
||||
xassert(tll_length(term->render.workers.queue) == 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue