summaryrefslogtreecommitdiffstats
path: root/cmd-respawn-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-respawn-window.c')
-rw-r--r--cmd-respawn-window.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd-respawn-window.c b/cmd-respawn-window.c
index 540931aa..227754c1 100644
--- a/cmd-respawn-window.c
+++ b/cmd-respawn-window.c
@@ -80,6 +80,7 @@ cmd_respawn_window_exec(struct cmd *self, struct cmd_ctx *ctx)
ctx->error(ctx, "respawn window failed: %s", cause);
xfree(cause);
environ_free(&env);
+ server_destroy_pane(wp);
return (-1);
}
layout_init(w);