---
name: "destroy_rle_sprite"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/destroy_rle_sprite/3alleg4"
---

# destroy\_rle\_sprite(3alleg4)

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**(3alleg4)
