aboutsummaryrefslogtreecommitdiff
path: root/cmd-queue.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2019-04-07 13:01:03 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2019-04-07 13:01:03 +0100
commit5ece386cdf84b692c1f28b5bf018ac619d067fde (patch)
tree29e38521bfa457820300718c394b8b72d584e400 /cmd-queue.c
parent7653328ce7e2876dff3219a02cdd87ade3caf90a (diff)
downloadrtmux-5ece386cdf84b692c1f28b5bf018ac619d067fde.tar.gz
rtmux-5ece386cdf84b692c1f28b5bf018ac619d067fde.tar.bz2
rtmux-5ece386cdf84b692c1f28b5bf018ac619d067fde.zip
Break new window and pane creation common code from various commands and
window.c into a separate file spawn.c.
Diffstat (limited to 'cmd-queue.c')
-rw-r--r--cmd-queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-queue.c b/cmd-queue.c
index 97b3c1c9..03fd5f10 100644
--- a/cmd-queue.c
+++ b/cmd-queue.c
@@ -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);