---
name: "IMG_FreeAnimation"
section: "3"
platform: "linux"
package: "libsdl3-image-doc"
version: "3.2.4+ds-1+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/IMG_FreeAnimation"
---

# IMG\_FreeAnimation(3)

Dispose of an IMG\_Animation and free its resources.

## NAME

IMG\_FreeAnimation - Dispose of an  **IMG\_Animation**\
  and free its resources.

## HEADER FILE

Defined in SDL3\_image/SDL\_image.h

## SYNOPSIS

```
#include "SDL3_image/SDL_image.h"
```

**void IMG\_FreeAnimation(IMG\_Animation \*anim);**

## DESCRIPTION

The provided **anim** pointer is not valid once this call returns.

## FUNCTION PARAMETERS

- *anim*

  **IMG\_Animation**\
    to dispose of.

## AVAILABILITY

This function is available since SDL\_image 3.0.0.

## SEE ALSO

**•**(3), [**IMG\_LoadAnimation**(3)](/IMG_LoadAnimation/3.md), **•**(3), [**IMG\_LoadAnimation\_IO**(3)](/IMG_LoadAnimation_IO/3.md), **•**(3), [**IMG\_LoadAnimationTyped\_IO**(3)](/IMG_LoadAnimationTyped_IO/3.md)
