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