From 57cd2b32147e1b321f0569abd29f15cd7cf0184d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 30 Jul 2007 00:28:14 +0000 Subject: 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 --- src/libs/module/module.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/libs/module/module.cpp') 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; + } } -- cgit v1.2.1