Allegro 5 api
#include <allegro5/allegro.h> void al_destroy_event_queue(ALLEGRO_EVENT_QUEUE *queue)
Destroy the event queue specified. All event sources currently registered with the queue will be automatically unregistered before the queue is destroyed.
al_create_event_queue(3alleg5), ALLEGRO_EVENT_QUEUE(3alleg5)