[channels] fix addin queue free

Only clear messages with an ID of 0
This commit is contained in:
Armin Novak 2022-12-06 13:28:08 +01:00 committed by akallabeth
parent 64c94e06f3
commit 0f4be4befd

View File

@ -581,7 +581,7 @@ static void free_msg(void* obj)
{ {
wMessage* msg = (wMessage*)obj; wMessage* msg = (wMessage*)obj;
if (msg) if (msg && (msg->id == 0))
{ {
wStream* s = (wStream*)msg->wParam; wStream* s = (wStream*)msg->wParam;
Stream_Free(s, TRUE); Stream_Free(s, TRUE);