[Spice-devel] [PATCH 04/23] call red_pipe_item_unref instead of free

Frediano Ziglio fziglio at redhat.com
Mon May 16 13:31:14 UTC 2016


This is the standard way to release a RedPipeItem

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/dcc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/dcc.c b/server/dcc.c
index 0953efd..6f08cd9 100644
--- a/server/dcc.c
+++ b/server/dcc.c
@@ -1676,7 +1676,7 @@ static void release_item_before_push(DisplayChannelClient *dcc, RedPipeItem *ite
     case RED_PIPE_ITEM_TYPE_STREAM_ACTIVATE_REPORT:
     case RED_PIPE_ITEM_TYPE_GL_SCANOUT:
     case RED_PIPE_ITEM_TYPE_GL_DRAW:
-        free(item);
+        red_pipe_item_unref(item);
         break;
     default:
         spice_critical("invalid item type");
-- 
2.7.4



More information about the Spice-devel mailing list