server/red_channel: reset send_data.item to NULL after release

This commit is contained in:
Alon Levy 2010-11-12 10:41:37 +02:00
parent d4c187c043
commit aa5d23fdec

View File

@ -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);