X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=libchimara%2Fabort.c;h=9ee66fc3bc6ff1eb1a98b3ba16107796ffbd97ce;hb=71f34e137dc675d30a56556cad2ff59b91cfaeda;hp=3e855366ac34ea6a70ee23c46aade806e416f75f;hpb=a03ca60f975be1f4636e42ca19f9e6eafc3fad12;p=projects%2Fchimara%2Fchimara.git diff --git a/libchimara/abort.c b/libchimara/abort.c index 3e85536..9ee66fc 100644 --- a/libchimara/abort.c +++ b/libchimara/abort.c @@ -143,13 +143,7 @@ shutdown_glk_post(void) /* Empty the event queue */ g_mutex_lock(&glk_data->event_lock); g_queue_foreach(glk_data->event_queue, (GFunc)g_free, NULL); - - /* COMPAT: g_queue_clear could be used here, but only appeared in 2.14 */ - // g_queue_clear(glk_data->event_queue); - g_list_free(glk_data->event_queue->head); - glk_data->event_queue->head = glk_data->event_queue->tail = NULL; - glk_data->event_queue->length = 0; - + g_queue_clear(glk_data->event_queue); g_mutex_unlock(&glk_data->event_lock); /* Reset the abort signaling mechanism */