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)
|
if (!queue)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
MessageQueue_Clear(queue);
|
||||||
|
|
||||||
CloseHandle(queue->event);
|
CloseHandle(queue->event);
|
||||||
DeleteCriticalSection(&queue->lock);
|
DeleteCriticalSection(&queue->lock);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user