diff options
author | David Robillard <d@drobilla.net> | 2011-02-17 03:11:41 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-02-17 03:11:41 +0000 |
commit | df7a87fe043440d99b23378efc6664b5deed8b42 (patch) | |
tree | faf7f20f1dc209f0e16b565008df58e1af096585 /src/client | |
parent | 8c6a7c4ad5f5cb6b3b583aefbfe6b0cf57414294 (diff) | |
download | ingen-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/client')
-rw-r--r-- | src/client/ingen_client.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
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" |