[Spice-devel] [PATCH 22/23] reuse red_channel_client_release_sent_item function
Frediano Ziglio
fziglio at redhat.com
Mon May 16 13:31:32 UTC 2016
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;
}
--
2.7.4
More information about the Spice-devel
mailing list