summaryrefslogtreecommitdiffstats
path: root/src/gui
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/gui
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/gui')
-rw-r--r--src/gui/ingen_gui.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/gui/ingen_gui.cpp b/src/gui/ingen_gui.cpp
index 37bbadc3..9d0e995b 100644
--- a/src/gui/ingen_gui.cpp
+++ b/src/gui/ingen_gui.cpp
@@ -25,16 +25,12 @@ struct IngenGUIModule : public Ingen::Shared::Module {
}
};
-static IngenGUIModule* module = NULL;
-
extern "C" {
Ingen::Shared::Module*
-ingen_module_load() {
- if (!module)
- module = new IngenGUIModule();
-
- return module;
+ingen_module_load()
+{
+ return new IngenGUIModule();
}
} // extern "C"