summaryrefslogtreecommitdiffstats
path: root/src/module
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-12-30 04:33:36 +0000
committerDavid Robillard <d@drobilla.net>2009-12-30 04:33:36 +0000
commit973858ec5a5f795f6ec0c712733a5f5343eb0261 (patch)
tree5a3e049bb105d54b96baecbed05be7cca9e6a893 /src/module
parent220a92d5fc4fb52dd715733e0a98c9f2ce09877c (diff)
downloadingen-973858ec5a5f795f6ec0c712733a5f5343eb0261.tar.gz
ingen-973858ec5a5f795f6ec0c712733a5f5343eb0261.tar.bz2
ingen-973858ec5a5f795f6ec0c712733a5f5343eb0261.zip
Fail gracefully if module fails to load.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2318 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/module')
-rw-r--r--src/module/World.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/module/World.cpp b/src/module/World.cpp
index c4b1a88e..d5e50a9e 100644
--- a/src/module/World.cpp
+++ b/src/module/World.cpp
@@ -90,7 +90,7 @@ World::load(const char* name)
{
SharedPtr<Glib::Module> lib = load_module(name);
Ingen::Shared::Module* (*module_load)() = NULL;
- if (lib->get_symbol("ingen_module_load", (void*&)module_load)) {
+ if (lib && lib->get_symbol("ingen_module_load", (void*&)module_load)) {
Module* module = module_load();
module->library = lib;
module->load(this);