[Spice-devel] [PATCH v2 34/40] server/red_channel: reset send_data.item to NULL after release

Alon Levy alevy at redhat.com
Wed Mar 2 00:31:57 PST 2011


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

diff --git a/server/red_channel.c b/server/red_channel.c
index 8eb4e0d..4330236 100644
--- a/server/red_channel.c
+++ b/server/red_channel.c
@@ -683,6 +683,7 @@ void red_channel_pipe_clear(RedChannel *channel)
     ASSERT(channel);
     if (channel->send_data.item) {
         red_channel_release_item(channel, channel->send_data.item, TRUE);
+        channel->send_data.item = NULL;
     }
     while ((item = (PipeItem *)ring_get_head(&channel->pipe))) {
         ring_remove(&item->link);
-- 
1.7.4.1



More information about the Spice-devel mailing list