mirror of
https://github.com/glfw/glfw.git
synced 2025-10-03 13:20:58 +00:00
* If we can't connect to the mir server make sure we check queue == NULL
This commit is contained in:
parent
4ed4e06c57
commit
ab27dd2bde
@ -427,6 +427,8 @@ void _glfwInitEventQueue(EventQueue* queue)
|
||||
|
||||
void _glfwDeleteEventQueue(EventQueue* queue)
|
||||
{
|
||||
if (queue)
|
||||
{
|
||||
EventNode* node, *node_next;
|
||||
node = queue->head.tqh_first;
|
||||
|
||||
@ -439,6 +441,9 @@ void _glfwDeleteEventQueue(EventQueue* queue)
|
||||
|
||||
node = node_next;
|
||||
}
|
||||
}
|
||||
|
||||
free(queue);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user