1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 10:48:51 -05:00

Check queue == NULL if we can't connect to server.

This commit is contained in:
BrandonSchaefer 2014-11-10 12:17:21 -08:00 committed by Camilla Berglund
parent d300aa3255
commit a71a52ddd6

View File

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