[Spice-devel] [PATCH 20/26] server/red_channel: reset send_data.item to NULL after release
Alon Levy
alevy at redhat.com
Fri Feb 11 09:49:05 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 0921388..4d6a147 100644
--- a/server/red_channel.c
+++ b/server/red_channel.c
@@ -681,6 +681,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
More information about the Spice-devel
mailing list