summaryrefslogtreecommitdiffstats
path: root/spawn.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2021-08-23 16:06:46 +0100
committerThomas Adam <thomas@xteddy.org>2021-08-23 16:06:46 +0100
commit95a374d7d20dde938563a9f92c8ffc1e25bd4050 (patch)
tree596cfdc4aa9c9d7a0f04cd1c8b541e86ede90eef /spawn.c
parent1dec1ca146882572e261f2f2f55d9060c06a0212 (diff)
parent210e71edf36198e3f22525e7f548a71a5681d25c (diff)
Merge branch 'obsd-master' into master
Diffstat (limited to 'spawn.c')
-rw-r--r--spawn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/spawn.c b/spawn.c
index 565b7da5..c8ac1bd8 100644
--- a/spawn.c
+++ b/spawn.c
@@ -177,6 +177,7 @@ spawn_window(struct spawn_context *sc, char **cause)
/* Set the name of the new window. */
if (~sc->flags & SPAWN_RESPAWN) {
+ free(w->name);
if (sc->name != NULL) {
w->name = format_single(item, sc->name, c, s, NULL,
NULL);