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

# destroy\_scene(3alleg)

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**(3alleg)](/man/create_scene/3alleg.md), [**scene\_polygon3d**(3alleg)](/man/scene_polygon3d/3alleg.md), [**clear\_scene**(3alleg)](/man/clear_scene/3alleg.md), [**render\_scene**(3alleg)](/man/render_scene/3alleg.md), [**scene\_gap**(3alleg)](/man/scene_gap/3alleg.md), [**exscn3d**(3alleg)](/man/exscn3d/3alleg.md)
