[Spice-devel] [RFCv5 09/47] server/red_client: clear pipe on disconnect

Alon Levy alevy at redhat.com
Sun May 8 06:11:05 PDT 2011


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

diff --git a/server/red_channel.c b/server/red_channel.c
index 6f8d73e..60b6d89 100644
--- a/server/red_channel.c
+++ b/server/red_channel.c
@@ -869,7 +869,7 @@ void red_channel_client_disconnect(RedChannelClient *rcc)
     if (rcc->send_data.item) {
         rcc->channel->release_item(rcc, rcc->send_data.item, FALSE);
     }
-    // TODO: clear our references from the pipe
+    red_channel_client_pipe_clear(rcc);
     reds_stream_free(rcc->stream);
     rcc->send_data.item = NULL;
     rcc->send_data.blocked = FALSE;
-- 
1.7.5.1



More information about the Spice-devel mailing list