summaryrefslogtreecommitdiffstats
path: root/src/bindings
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-17 03:11:41 +0000
committerDavid Robillard <d@drobilla.net>2011-02-17 03:11:41 +0000
commitdf7a87fe043440d99b23378efc6664b5deed8b42 (patch)
treefaf7f20f1dc209f0e16b565008df58e1af096585 /src/bindings
parent8c6a7c4ad5f5cb6b3b583aefbfe6b0cf57414294 (diff)
downloadingen-df7a87fe043440d99b23378efc6664b5deed8b42.tar.gz
ingen-df7a87fe043440d99b23378efc6664b5deed8b42.tar.bz2
ingen-df7a87fe043440d99b23378efc6664b5deed8b42.zip
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
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/ingen_bindings.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/bindings/ingen_bindings.cpp b/src/bindings/ingen_bindings.cpp
index a16890cd..fa365571 100644
--- a/src/bindings/ingen_bindings.cpp
+++ b/src/bindings/ingen_bindings.cpp
@@ -28,16 +28,12 @@ struct IngenBindingsModule : public Ingen::Shared::Module {
}
};
-static IngenBindingsModule* module = NULL;
-
extern "C" {
Ingen::Shared::Module*
-ingen_module_load() {
- if (!module)
- module = new IngenBindingsModule();
-
- return module;
+ingen_module_load()
+{
+ return new IngenBindingsModule();
}
void