mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user