DOKK / manpages / debian 10 / allegro5-doc / al_destroy_user_event_source.3alleg5.en
al_destroy_user_event_source(3alleg5) al_destroy_user_event_source(3alleg5)

al_destroy_user_event_source - Allegro 5 API

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

Destroy an event source initialised with al_init_user_event_source(3alleg5).

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

ALLEGRO_EVENT_SOURCE(3alleg5)

Allegro reference manual