###### (This function is part of SDL_image, a separate library from SDL.) # IMG_FreeAnimation Dispose of an [IMG_Animation](IMG_Animation) and free its resources. ## Header File Defined in [](https://github.com/libsdl-org/SDL_image/blob/SDL2/include/SDL_image.h) ## Syntax ```c void IMG_FreeAnimation(IMG_Animation *anim); ``` ## Function Parameters | | | | | -------------------------------- | -------- | --------------------------------------------- | | [IMG_Animation](IMG_Animation) * | **anim** | [IMG_Animation](IMG_Animation) to dispose of. | ## Remarks The provided `anim` pointer is not valid once this call returns. ## Version This function is available since SDL_image 2.6.0. ## See Also - [IMG_LoadAnimation](IMG_LoadAnimation) - [IMG_LoadAnimation_RW](IMG_LoadAnimation_RW) - [IMG_LoadAnimationTyped_RW](IMG_LoadAnimationTyped_RW) ---- [CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)