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