From 81f9a23d25237f2b0c52a2867ddd2db59cc8f368 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 2 Mar 2021 11:00:38 +0000 Subject: Do not use NULL active window; also do not leak window name. GitHub issue 2590 from Chester Liu. --- spawn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spawn.c') diff --git a/spawn.c b/spawn.c index 9a801a38..e3f8debe 100644 --- a/spawn.c +++ b/spawn.c @@ -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. */ -- cgit