[Spice-devel] [PATCH 23/23] server/red_worker: use red_channel_destroy

Alon Levy alevy at redhat.com
Fri Feb 11 09:23:11 PST 2011


---
 server/red_worker.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/server/red_worker.c b/server/red_worker.c
index 1659af0..57a4cc7 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -7265,8 +7265,7 @@ static inline void red_unref_channel(RedChannel *channel)
     ASSERT(channel);
     common = SPICE_CONTAINEROF(channel, CommonChannel, base);
     if (!--common->listener.refs) {
-        spice_marshaller_destroy(channel->send_data.marshaller);
-        free(channel);
+        red_channel_destroy(channel);
     }
 }
 
-- 
1.7.4



More information about the Spice-devel mailing list