summaryrefslogtreecommitdiffstats
path: root/src/libs/module/module.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-07-30 00:28:14 +0000
committerDavid Robillard <d@drobilla.net>2007-07-30 00:28:14 +0000
commit57cd2b32147e1b321f0569abd29f15cd7cf0184d (patch)
tree3e6f4932cbaf275a1fed39d97dbc2585336c98d1 /src/libs/module/module.cpp
parentc63ecb743cbfec4393bb6f4caa98ee87e753dce8 (diff)
downloadingen-57cd2b32147e1b321f0569abd29f15cd7cf0184d.tar.gz
ingen-57cd2b32147e1b321f0569abd29f15cd7cf0184d.tar.bz2
ingen-57cd2b32147e1b321f0569abd29f15cd7cf0184d.zip
Shutdown cleanly (fix ticket 53).
Fix a ton of nasty LADSPA/DSSI library related bugs. git-svn-id: http://svn.drobilla.net/lad/ingen@653 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/module/module.cpp')
-rw-r--r--src/libs/module/module.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libs/module/module.cpp b/src/libs/module/module.cpp
index 80ed035b..7584ebc7 100644
--- a/src/libs/module/module.cpp
+++ b/src/libs/module/module.cpp
@@ -45,11 +45,14 @@ get_world()
void
destroy_world()
{
+ if (world) {
#ifdef HAVE_SLV2
- slv2_world_free(world->slv2_world);
+ slv2_world_free(world->slv2_world);
#endif
- delete world;
+ delete world;
+ world = NULL;
+ }
}