From 354f43020d956e7f02dcc81feab13e6fa0e98e10 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 9 Nov 2009 11:31:28 -0500 Subject: Make dmnsn_delete_scene() delete the scene's elements too. --- dimension/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dimension/main.c') diff --git a/dimension/main.c b/dimension/main.c index 5d921e7..9f2ab3f 100644 --- a/dimension/main.c +++ b/dimension/main.c @@ -150,7 +150,7 @@ main(int argc, char **argv) { } if (dmnsn_raytrace_scene(scene) != 0) { - dmnsn_delete_realized_scene(scene); + dmnsn_delete_scene(scene); dmnsn_error(DMNSN_SEVERITY_HIGH, "Error rendering scene."); } @@ -166,6 +166,6 @@ main(int argc, char **argv) { } fclose(output_file); - dmnsn_delete_realized_scene(scene); + dmnsn_delete_scene(scene); return EXIT_SUCCESS; } -- cgit v1.2.3