From 42b469037c1b2bb55cd400a24cabfa29e7ae1ab2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 15 Apr 2011 20:20:58 +0000 Subject: 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 --- src/ingen/main.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/ingen') 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; } -- cgit v1.2.1