mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-27 04:28:52 -05:00
Check queue == NULL if we can't connect to server.
This commit is contained in:
parent
d300aa3255
commit
a71a52ddd6
|
@ -426,6 +426,8 @@ void _glfwInitEventQueue(EventQueue* queue)
|
||||||
}
|
}
|
||||||
|
|
||||||
void _glfwDeleteEventQueue(EventQueue* queue)
|
void _glfwDeleteEventQueue(EventQueue* queue)
|
||||||
|
{
|
||||||
|
if (queue)
|
||||||
{
|
{
|
||||||
EventNode* node, *node_next;
|
EventNode* node, *node_next;
|
||||||
node = queue->head.tqh_first;
|
node = queue->head.tqh_first;
|
||||||
|
@ -441,6 +443,9 @@ void _glfwDeleteEventQueue(EventQueue* queue)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(queue);
|
||||||
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
////// GLFW platform API //////
|
////// GLFW platform API //////
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Reference in New Issue
Block a user