diff options
-rw-r--r-- | src/libs/gui/ThreadedLoader.cpp | 3 | ||||
-rw-r--r-- | src/libs/module/Module.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/libs/gui/ThreadedLoader.cpp b/src/libs/gui/ThreadedLoader.cpp index 3a919bf2..a037a711 100644 --- a/src/libs/gui/ThreadedLoader.cpp +++ b/src/libs/gui/ThreadedLoader.cpp @@ -128,7 +128,8 @@ ThreadedLoader::save_patch(SharedPtr<PatchModel> model, const string& filename) void ThreadedLoader::save_patch_event(SharedPtr<PatchModel> model, const string& filename) { - App::instance().serialiser()->to_file(model, filename); + if (App::instance().serialiser()) + App::instance().serialiser()->to_file(model, filename); } diff --git a/src/libs/module/Module.cpp b/src/libs/module/Module.cpp index 83064548..1c6c7788 100644 --- a/src/libs/module/Module.cpp +++ b/src/libs/module/Module.cpp @@ -71,7 +71,7 @@ load_module(const string& name) // Try default directory if not found module = new Glib::Module( Glib::Module::build_path(INGEN_MODULE_DIR, name), - Glib::MODULE_BIND_LAZY|Glib::MODULE_BIND_LOCAL); + Glib::MODULE_BIND_LAZY); if (*module) { return SharedPtr<Glib::Module>(module); |