summaryrefslogtreecommitdiffstats
path: root/src/progs
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-07-30 00:28:14 +0000
committerDavid Robillard <d@drobilla.net>2007-07-30 00:28:14 +0000
commit57cd2b32147e1b321f0569abd29f15cd7cf0184d (patch)
tree3e6f4932cbaf275a1fed39d97dbc2585336c98d1 /src/progs
parentc63ecb743cbfec4393bb6f4caa98ee87e753dce8 (diff)
downloadingen-57cd2b32147e1b321f0569abd29f15cd7cf0184d.tar.gz
ingen-57cd2b32147e1b321f0569abd29f15cd7cf0184d.tar.bz2
ingen-57cd2b32147e1b321f0569abd29f15cd7cf0184d.zip
Shutdown cleanly (fix ticket 53).
Fix a ton of nasty LADSPA/DSSI library related bugs. git-svn-id: http://svn.drobilla.net/lad/ingen@653 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs')
-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;