diff options
author | nicm <nicm> | 2021-03-02 11:00:38 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-03-02 11:00:38 +0000 |
commit | 81f9a23d25237f2b0c52a2867ddd2db59cc8f368 (patch) | |
tree | 76e1fb4114c3224758012f9be71cd616c92e7146 /spawn.c | |
parent | c44750792a9683c5cd6f9df5a69e7417b88772d2 (diff) | |
download | rtmux-81f9a23d25237f2b0c52a2867ddd2db59cc8f368.tar.gz rtmux-81f9a23d25237f2b0c52a2867ddd2db59cc8f368.tar.bz2 rtmux-81f9a23d25237f2b0c52a2867ddd2db59cc8f368.zip |
Do not use NULL active window; also do not leak window name. GitHub
issue 2590 from Chester Liu.
Diffstat (limited to 'spawn.c')
-rw-r--r-- | spawn.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. */ |