* If we can't connect to the mir server make sure we check queue == NULL

This commit is contained in:
BrandonSchaefer 2014-11-10 12:17:21 -08:00
parent 4ed4e06c57
commit ab27dd2bde

View File

@ -426,6 +426,8 @@ void _glfwInitEventQueue(EventQueue* queue)
}
void _glfwDeleteEventQueue(EventQueue* queue)
{
if (queue)
{
EventNode* node, *node_next;
node = queue->head.tqh_first;
@ -441,6 +443,9 @@ void _glfwDeleteEventQueue(EventQueue* queue)
}
}
free(queue);
}
//////////////////////////////////////////////////////////////////////////
////// GLFW platform API //////
//////////////////////////////////////////////////////////////////////////