fix more close segfaults

This commit is contained in:
Tony Crisci 2018-04-02 21:01:33 -04:00
parent 32ef182f47
commit 2c165e1288
5 changed files with 41 additions and 7 deletions

View file

@ -19,11 +19,8 @@ struct cmd_results *cmd_kill(int argc, char **argv) {
"Can only kill views and containers with this command");
break;
case C_CONTAINER:
con = container_destroy(con);
arrange_windows(con, -1, -1);
break;
case C_VIEW:
view_close(con->sway_view);
container_close(con);
break;
}