---
name: "al_destroy_user_event_source"
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_user_event_source"
---

# al\_destroy\_user\_event\_source(3)

Allegro 5 API

## NAME

al\_destroy\_user\_event\_source - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  void al_destroy_user_event_source(ALLEGRO_EVENT_SOURCE *src)
  ```

## DESCRIPTION

Destroy an event source initialised with [al\_init\_user\_event\_source(3)](/al_init_user_event_source/3.md).

This does not free the memory, as that was user allocated to begin with.

## SEE ALSO

[ALLEGRO\_EVENT\_SOURCE(3)](/ALLEGRO_EVENT_SOURCE/3.md)
