mirror of https://github.com/FreeRDP/FreeRDP
[channel,rdpsnd] fix queue cleanup
The argument is of type wMessage* and we only care for messages with an ID of 0
This commit is contained in:
parent
7f9b5ada69
commit
64c94e06f3
|
@ -1304,7 +1304,12 @@ static UINT rdpsnd_virtual_channel_event_disconnected(rdpsndPlugin* rdpsnd)
|
|||
|
||||
static void _queue_free(void* obj)
|
||||
{
|
||||
wStream* s = obj;
|
||||
wMessage* msg = obj;
|
||||
if (!msg)
|
||||
return;
|
||||
if (msg->id != 0)
|
||||
return;
|
||||
wStream* s = msg->wParam;
|
||||
Stream_Release(s);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue