[PATCH 06/14] FIXME/HACK: RedPipeItem/VDIPortBuf refcounting hack

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

 



From: Christophe Fergeau <cfergeau@xxxxxxxxxx>

related to 7d375e0
workaround a runtime check in red_pipe_item_ref()
---
 server/reds.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/server/reds.c b/server/reds.c
index 64f7df8..bf39cf7 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -752,7 +752,8 @@ static VDIReadBuf *vdi_port_get_read_buf(RedCharDeviceVDIPort *dev)
     buf = SPICE_CONTAINEROF(item, VDIReadBuf, link.parent.link);
 
     g_warn_if_fail(buf->link.refcount == 0);
-    red_pipe_item_ref(buf);
+    buf->link.refcount = 1;
+    //red_pipe_item_ref(buf);
 
     return buf;
 }
-- 
2.4.11

_______________________________________________
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]