[Spice-devel] [PATCH 11/23] simplify spicevmc_red_channel_release_pipe_item
Frediano Ziglio
fziglio at redhat.com
Mon May 16 13:31:21 UTC 2016
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,
--
2.7.4
More information about the Spice-devel
mailing list