---
name: "destroy_compiled_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_compiled_sprite/3alleg4"
---

# destroy\_compiled\_sprite(3alleg4)

Destroys a compiled sprite. Allegro game programming library.

## NAME

destroy\_compiled\_sprite - Destroys a compiled sprite. Allegro game programming library.

## SYNOPSIS

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

**void destroy\_compiled\_sprite(COMPILED\_SPRITE \*sprite);**

## DESCRIPTION

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

## SEE ALSO

**get\_compiled\_sprite**(3alleg4)
