diff options
author | David Robillard <d@drobilla.net> | 2011-04-15 20:20:58 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-04-15 20:20:58 +0000 |
commit | 42b469037c1b2bb55cd400a24cabfa29e7ae1ab2 (patch) | |
tree | 1b2e6310cb6fc7fe9b6066349d71ef1c1a9c829f /src/ingen | |
parent | a25b29c2e0843964ad82870c102857e3a83fad61 (diff) | |
download | ingen-42b469037c1b2bb55cd400a24cabfa29e7ae1ab2.tar.gz ingen-42b469037c1b2bb55cd400a24cabfa29e7ae1ab2.tar.bz2 ingen-42b469037c1b2bb55cd400a24cabfa29e7ae1ab2.zip |
Remove pointless module interface to ingen_module (World).
Having a dlopen interface to this code makes no sense since it must be linked against to load modules in the first place.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3146 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/ingen')
-rw-r--r-- | src/ingen/main.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ingen/main.cpp b/src/ingen/main.cpp index 3a27b46b..65d316b7 100644 --- a/src/ingen/main.cpp +++ b/src/ingen/main.cpp @@ -40,7 +40,6 @@ #include "engine/Engine.hpp" #include "ingen/EngineInterface.hpp" #include "module/World.hpp" -#include "module/ingen_module.hpp" #include "serialisation/Parser.hpp" #include "shared/Configuration.hpp" #include "shared/runtime_paths.hpp" @@ -60,7 +59,7 @@ ingen_interrupt(int) cout << "ingen: Interrupted" << endl; if (world->local_engine()) world->local_engine()->quit(); - ingen_world_free(world); + delete world; exit(EXIT_FAILURE); } @@ -69,7 +68,7 @@ ingen_try(bool cond, const char* msg) { if (!cond) { cerr << "ingen: Error: " << msg << endl; - ingen_world_free(world); + delete world; exit(EXIT_FAILURE); } } @@ -106,7 +105,7 @@ main(int argc, char** argv) g_type_init(); #endif - Ingen::Shared::World* world = ingen_world_new(&conf, argc, argv); + Ingen::Shared::World* world = new Ingen::Shared::World(&conf, argc, argv); #if INGEN_JACK_SESSION if (conf.option("uuid").get_string()) { @@ -225,7 +224,7 @@ main(int argc, char** argv) if (world->local_engine()) world->local_engine()->deactivate(); - ingen_world_free(world); + delete world; return 0; } |