[Spice-devel] [PATCH 11/23] simplify spicevmc_red_channel_release_pipe_item
Jonathon Jongsma
jjongsma at redhat.com
Tue May 17 20:00:53 UTC 2016
Acked-by: Jonathon Jongsma <jjongsma at redhat.com>
On Mon, 2016-05-16 at 14:31 +0100, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
> server/spicevmc.c | 6 +-----
> 1 file changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/server/spicevmc.c b/server/spicevmc.c
> index bdaa3c3..5724023 100644
> --- a/server/spicevmc.c
> +++ b/server/spicevmc.c
> @@ -441,11 +441,7 @@ static void
> spicevmc_red_channel_release_pipe_item(RedChannelClient *rcc,
> RedPipeItem *item,
> int item_pushed)
> {
> - if (item->type == RED_PIPE_ITEM_TYPE_SPICEVMC_DATA) {
> - red_pipe_item_unref(item);
> - } else {
> - free(item);
> - }
> + red_pipe_item_unref(item);
> }
>
> static void spicevmc_connect(RedChannel *channel, RedClient *client,
More information about the Spice-devel
mailing list