---
name: "al_destroy_event_queue"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_destroy_event_queue/3alleg5"
---

# al\_destroy\_event\_queue(3alleg5)

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(3alleg5), ALLEGRO\_EVENT\_QUEUE(3alleg5)
