mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +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:
3
names.c
3
names.c
@ -50,6 +50,9 @@ window_name_callback(unused int fd, unused short events, void *data)
|
||||
struct window *w = data;
|
||||
char *name, *wname;
|
||||
|
||||
if (w->active == NULL)
|
||||
return;
|
||||
|
||||
if (!options_get_number(&w->options, "automatic-rename")) {
|
||||
if (event_initialized(&w->name_timer))
|
||||
event_del(&w->name_timer);
|
||||
|
Reference in New Issue
Block a user