---
name: "destroy_rle_sprite"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/destroy_rle_sprite"
---

# destroy\_rle\_sprite(3alleg)

Destroys an RLE sprite. Allegro game programming library.

## NAME

destroy\_rle\_sprite - Destroys an RLE sprite. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**void destroy\_rle\_sprite(RLE\_SPRITE \*sprite);**

## DESCRIPTION

Destroys an RLE sprite structure previously returned by get\_rle\_sprite(). If you pass a NULL pointer this function won't do anything. Use this once you are done with an RLE sprite to avoid memory leaks in your program.

## SEE ALSO

[**get\_rle\_sprite**(3alleg)](/get_rle_sprite/3alleg.md)
