[Spice-devel] [PATCH 22/23] reuse red_channel_client_release_sent_item function

Jonathon Jongsma jjongsma at redhat.com
Tue May 17 20:11:26 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/red-channel.c | 5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)
> 
> diff --git a/server/red-channel.c b/server/red-channel.c
> index 77eb4be..803570c 100644
> --- a/server/red-channel.c
> +++ b/server/red-channel.c
> @@ -1757,10 +1757,7 @@ int red_channel_is_connected(RedChannel *channel)
>  
>  static void red_channel_client_clear_sent_item(RedChannelClient *rcc)
>  {
> -    if (rcc->send_data.item) {
> -        red_pipe_item_unref(rcc->send_data.item);
> -        rcc->send_data.item = NULL;
> -    }
> +    red_channel_client_release_sent_item(rcc);
>      rcc->send_data.blocked = FALSE;
>      rcc->send_data.size = 0;
>  }


More information about the Spice-devel mailing list