al_close_video(3alleg5)

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

✨ al_close_video ✨

okay bestie, welcome to the Allegro 5 API πŸ’– this one's a lil function called al_close_video and honestly? it's giving "cleanup era." 🧹✨


🌸 SYNOPSIS 🌸

#include <allegro5/allegro_video.h>

void al_close_video(ALLEGRO_VIDEO *video)

πŸ’… DESCRIPTION πŸ’…

so like. you know how you opened a video and it's out here vibing, holding onto memory and resources and just existing? yeah. al_close_video is the one that closes the video and frees all the allocated resources. she's the friend who actually helps you pack up after the party 🫢

⚠️ okay this part is IMPORTANT, no cap: the video pointer is invalid after the function returns. like, do not touch it. do not look at it. do not pass it to anything. it's done, it's gone, it's ✨ past tense ✨. using it after this call is undefined-behaviour territory and we do NOT go there πŸ™ˆ

πŸŽ€ SINCE πŸŽ€

5.1.0 β€” she's been holding it down since day one, iconic behavior honestly πŸ‘‘


and that's the whole page, bestie!! πŸ¦‹ this lil cutie lives in the Allegro reference manual (manual name al_close_video(3alleg5) for the search bar girlies iykyk πŸ”), dated whenever this page was born, so go close that video and free your resources, periodt πŸ’–πŸ’…πŸŒΈ

πŸ“¦ where this page comes from