al_destroy_user_event_source(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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