diff --git a/input/input.c b/input/input.c index 63d8537ed3..f2b601fdbe 100644 --- a/input/input.c +++ b/input/input.c @@ -1362,7 +1362,10 @@ void mp_input_feed_key(struct input_ctx *ictx, int code) struct cmd_queue *queue = &ictx->key_cmd_queue; if (queue_count_cmds(queue) >= ictx->key_fifo_size && (!mp_input_is_abort_cmd(cmd->id) || queue_has_abort_cmds(queue))) + { + talloc_free(cmd); return; + } queue_add(queue, cmd, false); }