[PATCH 04/23] call red_pipe_item_unref instead of free

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is the standard way to release a RedPipeItem

Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]