[artwork] Fix memleak in source_item_pipe_get

Queue item not being freed on succes
This commit is contained in:
ejurgensen 2020-05-11 21:37:29 +02:00
parent 97a2165666
commit 1921a2401f

View File

@ -1576,7 +1576,9 @@ source_item_pipe_get(struct artwork_ctx *ctx)
snprintf(ctx->path, sizeof(ctx->path), "%s", path);
return artwork_get(ctx->evbuf, path, NULL, ctx->max_w, ctx->max_h, false, ctx->data_kind);
free_queue_item(queue_item, 0);
return artwork_get(ctx->evbuf, ctx->path, NULL, ctx->max_w, ctx->max_h, false, ctx->data_kind);
}
static int