mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-27 07:29:32 +00:00
server/red_channel: reset send_data.item to NULL after release
This commit is contained in:
parent
d4c187c043
commit
aa5d23fdec
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user