---
 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 b387967..ad5727d 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.1

_______________________________________________
Spice-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to