Break new window and pane creation common code from various commands and

window.c into a separate file spawn.c.
This commit is contained in:
Nicholas Marriott
2019-04-07 13:01:03 +01:00
parent 7653328ce7
commit 5ece386cdf
21 changed files with 275 additions and 624 deletions

View File

@@ -111,7 +111,7 @@ cmdq_remove(struct cmdq_item *item)
if (item->client != NULL)
server_client_unref(item->client);
if (item->type == CMDQ_COMMAND)
if (item->cmdlist != NULL)
cmd_list_free(item->cmdlist);
TAILQ_REMOVE(item->queue, item, entry);