diff options
Diffstat (limited to 'libdimension/scene.c')
-rw-r--r-- | libdimension/scene.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libdimension/scene.c b/libdimension/scene.c index 9f8104b..2d25602 100644 --- a/libdimension/scene.c +++ b/libdimension/scene.c @@ -28,9 +28,9 @@ /* Allocate an empty scene */ dmnsn_scene * -dmnsn_new_scene(void) +dmnsn_new_scene(dmnsn_pool *pool) { - dmnsn_scene *scene = DMNSN_MALLOC(dmnsn_scene); + dmnsn_scene *scene = DMNSN_PALLOC(pool, dmnsn_scene); scene->background = NULL; scene->default_texture = dmnsn_new_texture(); @@ -71,7 +71,6 @@ dmnsn_delete_scene(dmnsn_scene *scene) dmnsn_delete_interior(scene->default_interior); dmnsn_delete_texture(scene->default_texture); dmnsn_delete_pigment(scene->background); - dmnsn_free(scene); } } |