Destroy panes immediately rather than checking them all every loop.

This commit is contained in:
Nicholas Marriott
2009-11-13 17:33:07 +00:00
parent 1415eb3dd2
commit 8e47966225
6 changed files with 26 additions and 69 deletions

View File

@ -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);