destroy_gfx_mode_list(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

πŸ’– destroy_gfx_mode_list(3) πŸ’–

okay so bestie, this is a page from the Allegro manual, and it's all about destroy_gfx_mode_list β€” a function from the Allegro game programming library. It's giving cleanup era, and honestly? iconic. ✨


🌸 NAME 🌸

destroy_gfx_mode_list β€” frees the list created by get_gfx_mode_list(). Allegro game programming library, periodt. 🧚

✨ SYNOPSIS ✨

#include <allegro.h>

void destroy_gfx_mode_list(GFX_MODE_LIST *mode_list);

πŸŽ€ DESCRIPTION πŸŽ€

This function removes the mode list created by get_gfx_mode_list() from memory. Use it once you are done with the generated mode list to avoid memory leaks in your program. No cap, that's the whole assignment: free the list, save your program from leaking memory like it's a sad little faucet. πŸ’…

bestie, if you don't call this when you're done, your program might just keep holding onto that list forever. Not the vibe. Use it after you're finished with the generated mode list. 🫢

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the page, bestie. Source: the Allegro manual, version 4.4.3 β€” the footer didn't give me a date, so we're just gonna say it's classic Allegro energy and leave it there. πŸ’–βœ¨

πŸ“¦ where this page comes from