From 5fcc724a4bcd9a8111a0a6d483e3d6dcbe97a2d5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 2 Apr 2010 02:38:42 +0000 Subject: Fix crashes on exit. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2550 a436a847-0d15-0410-975c-d299462d15a1 --- src/module/World.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/module') diff --git a/src/module/World.cpp b/src/module/World.cpp index 727e2dc8..bfdcb7e8 100644 --- a/src/module/World.cpp +++ b/src/module/World.cpp @@ -77,6 +77,9 @@ load_module(const string& name) Shared::module_path(name), Glib::MODULE_BIND_LAZY); + // FIXME: SEGV on exit without this + module->make_resident(); + if (*module) { LOG(info) << "Loaded `" << name << "' from " << INGEN_MODULE_DIR << endl; return SharedPtr(module); @@ -129,6 +132,8 @@ struct WorldImpl : public boost::noncopyable { virtual ~WorldImpl() { + local_engine.reset(); + modules.clear(); interface_factories.clear(); script_runners.clear(); -- cgit v1.2.1