al_unref_user_event
void al_unref_user_event(ALLEGRO_USER_EVENT *event)
Introduced in 5.0.0
Decrease the reference count of a user-defined event. This must be called on any user event that you get from al_get_next_event, al_peek_next_event, al_wait_for_event, etc. which is reference counted. This function does nothing if the event is not reference counted.
See also: al_emit_user_event
Examples: ex_user_events
Most helpful discussions: