Do not use NULL active window; also do not leak window name. GitHub

issue 2590 from Chester Liu.
This commit is contained in:
nicm
2021-03-02 11:00:38 +00:00
parent c44750792a
commit 81f9a23d25
2 changed files with 3 additions and 1 deletions

View File

@ -184,7 +184,7 @@ spawn_window(struct spawn_context *sc, char **cause)
NULL);
options_set_number(w->options, "automatic-rename", 0);
} else
w->name = xstrdup(default_window_name(w));
w->name = default_window_name(w);
}
/* Switch to the new window if required. */