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/client/ingen_client.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/client') diff --git a/src/client/ingen_client.cpp b/src/client/ingen_client.cpp index 693b981c..db98d54a 100644 --- a/src/client/ingen_client.cpp +++ b/src/client/ingen_client.cpp @@ -60,16 +60,12 @@ struct IngenClientModule : public Ingen::Shared::Module { } }; -static IngenClientModule* module = NULL; - extern "C" { Ingen::Shared::Module* -ingen_module_load() { - if (!module) - module = new IngenClientModule(); - - return module; +ingen_module_load() +{ + return new IngenClientModule(); } } // extern "C" -- cgit v1.2.1