mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-11 08:07:16 +00:00
server/red_channel: red_channel_pipe_clear: assert on NULL channel
This commit is contained in:
parent
e9103c67ad
commit
c4d028510d
@ -603,10 +603,11 @@ int red_channel_is_connected(RedChannel *channel)
|
||||
void red_channel_pipe_clear(RedChannel *channel)
|
||||
{
|
||||
PipeItem *item;
|
||||
|
||||
ASSERT(channel);
|
||||
if (channel->send_data.item) {
|
||||
channel->release_item(channel, channel->send_data.item, TRUE);
|
||||
}
|
||||
|
||||
while ((item = (PipeItem *)ring_get_head(&channel->pipe))) {
|
||||
ring_remove(&item->link);
|
||||
channel->release_item(channel, item, FALSE);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user