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_foreach(glk_data->event_queue, (GFunc)g_free, NULL);
/* COMPAT: g_queue_clear could be used here, but only appeared in 2.14 */