mirror of
https://github.com/tmate-io/tmate.git
synced 2026-01-23 02:24:06 +00:00
Fix up window reference counting and don't crash if the rename timer
fires while the window is dead but still referenced. Fixes problem reported by Michael Scholz.
This commit is contained in:
parent
a1e4908ed7
commit
58e8e0eac8
4 changed files with 18 additions and 8 deletions
3
notify.c
3
notify.c
|
|
@ -125,7 +125,8 @@ notify_drain(void)
|
|||
if (ne->session != NULL)
|
||||
ne->session->references--;
|
||||
if (ne->window != NULL)
|
||||
ne->window->references--;
|
||||
window_remove_ref(ne->window);
|
||||
|
||||
TAILQ_REMOVE(¬ify_queue, ne, entry);
|
||||
free(ne);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue