From df7a87fe043440d99b23378efc6664b5deed8b42 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 17 Feb 2011 03:11:41 +0000 Subject: Fix "Ingen as an LV2", i.e. make Ingen bundles working LV2 plugins. Fix module loading/unloading (don't use statics). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2973 a436a847-0d15-0410-975c-d299462d15a1 --- src/serialisation/serialisation.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/serialisation') diff --git a/src/serialisation/serialisation.cpp b/src/serialisation/serialisation.cpp index 91c435e3..e6780ed6 100644 --- a/src/serialisation/serialisation.cpp +++ b/src/serialisation/serialisation.cpp @@ -22,7 +22,7 @@ using namespace Ingen; -struct IngenModule : public Shared::Module { +struct IngenSerialisationModule : public Shared::Module { void load(Shared::World* world) { world->set_parser(SharedPtr( new Serialisation::Parser())); @@ -31,16 +31,11 @@ struct IngenModule : public Shared::Module { } }; -static IngenModule* module = NULL; - extern "C" { Shared::Module* ingen_module_load() { - if (!module) - module = new IngenModule(); - - return module; + return new IngenSerialisationModule(); } } // extern "C" -- cgit v1.2.1