al_destroy_user_event_source(3alleg5)
β¨ al_destroy_user_event_source β¨
okay bestie, welcome to the Allegro 5 API reference manual π this one's a lil baby page but it's important, so pay attention π
πΈ NAME πΈ
al_destroy_user_event_source β it's giving Allegro 5 API, and it's giving cleanup era π§Ήβ¨
π¦ SYNOPSIS π¦
#include <allegro5/allegro.h>
void al_destroy_user_event_source(ALLEGRO_EVENT_SOURCE *src)
π DESCRIPTION π
so basically, this function destroys an event source that you set up earlier with al_init_user_event_source(3alleg5) π like, it's the breakup text for your event source, no cap.
β οΈ but bestie, listen β this does not free the memory. the memory was user allocated to begin with, so it's yours to deal with π the function is just here to tear down the event source itself, not to go deleting memory that was never its business in the first place. periodt.
π SEE ALSO π
okay that's the whole page, you ate that π this was al_destroy_user_event_source from the Allegro reference manual β go forth and free your own memory responsibly, main character πβπ
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms