---
name: "al_destroy_event_queue"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_destroy_event_queue"
---

# al\_destroy\_event\_queue(3)

Allegro 5 API

## NAME

al\_destroy\_event\_queue - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  void al_destroy_event_queue(ALLEGRO_EVENT_QUEUE *queue)
  ```

## DESCRIPTION

Destroy the event queue specified. All event sources currently registered with the queue will be automatically unregistered before the queue is destroyed.

This function does nothing if `queue` is NULL. (since 5.2.9)

## SEE ALSO

[al\_create\_event\_queue(3)](/al_create_event_queue/3.md), [ALLEGRO\_EVENT\_QUEUE(3)](/ALLEGRO_EVENT_QUEUE/3.md)
