summaryrefslogtreecommitdiffstats
path: root/cmd-respawn-window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-11-13 17:33:07 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-11-13 17:33:07 +0000
commit8e479662255f480cabc45af5edc10098dc3f1819 (patch)
treee4e1681a98d5a33c876a31283241f67615e715cb /cmd-respawn-window.c
parent1415eb3dd249e7730b151a5cfd61c47a712a522f (diff)
Destroy panes immediately rather than checking them all every loop.
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);