Clear message queue on free.

This commit is contained in:
Armin Novak 2018-02-09 10:29:18 +01:00
parent 25076cfce1
commit 855dc9abaf

View File

@ -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);