summaryrefslogtreecommitdiffstats
path: root/src/progs/ingen
diff options
context:
space:
mode:
Diffstat (limited to 'src/progs/ingen')
-rw-r--r--src/progs/ingen/main.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/progs/ingen/main.cpp b/src/progs/ingen/main.cpp
index 1172c33a..eff265c6 100644
--- a/src/progs/ingen/main.cpp
+++ b/src/progs/ingen/main.cpp
@@ -205,12 +205,19 @@ main(int argc, char** argv)
engine->activate();
engine->main();
+ }
+
+ cout << "Exiting." << endl;
- cout << "Exiting." << endl;
-
+ if (engine) {
+ engine->deactivate();
engine.reset();
}
+ engine_module.reset();
+ client_module.reset();
+ gui_module.reset();
+
Ingen::Shared::destroy_world();
return 0;