---
name: "destroy_scene"
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_scene/3alleg4"
---

# destroy\_scene(3alleg4)

Deallocates the memory used by a scene. Allegro game programming library.

## NAME

destroy\_scene - Deallocates the memory used by a scene. Allegro game programming library.

## SYNOPSIS

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

**void destroy\_scene();**

## DESCRIPTION

Deallocate memory previously allocated by create\_scene. Use this to avoid memory leaks in your program.

## SEE ALSO

**create\_scene**(3alleg4), **scene\_polygon3d**(3alleg4), **clear\_scene**(3alleg4), **render\_scene**(3alleg4), **scene\_gap**(3alleg4), **exscn3d**(3alleg4)
