Clear message queue on free.
This commit is contained in:
parent
25076cfce1
commit
855dc9abaf
@ -227,6 +227,8 @@ void MessageQueue_Free(wMessageQueue* queue)
|
||||
if (!queue)
|
||||
return;
|
||||
|
||||
MessageQueue_Clear(queue);
|
||||
|
||||
CloseHandle(queue->event);
|
||||
DeleteCriticalSection(&queue->lock);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user