summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-01-29 18:22:57 +0100
committerRobin Gareus <robin@gareus.org>2016-01-29 18:22:57 +0100
commit1972cf966eec37cf035ce85f7921f10dcd79f74e (patch)
tree4f5ba889c758f39073f00f0f2c137222af414f83
parentb40717604c791956982a51a9604066bdd711e695 (diff)
Another attempt fixing crash at exit on windows.
-rw-r--r--libs/ardour/lv2_plugin.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc
index ef247109bd..507e546adc 100644
--- a/libs/ardour/lv2_plugin.cc
+++ b/libs/ardour/lv2_plugin.cc
@@ -2527,6 +2527,9 @@ LV2World::LV2World()
LV2World::~LV2World()
{
+ if (!world) {
+ return;
+ }
#ifdef HAVE_LV2_1_2_0
lilv_node_free(bufz_nominalBlockLength);
lilv_node_free(bufz_fixedBlockLength);
@@ -2570,6 +2573,7 @@ LV2World::~LV2World()
lilv_node_free(atom_Chunk);
lilv_node_free(atom_AtomPort);
lilv_world_free(world);
+ world = NULL;
}
void