From 1972cf966eec37cf035ce85f7921f10dcd79f74e Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 29 Jan 2016 18:22:57 +0100 Subject: Another attempt fixing crash at exit on windows. --- libs/ardour/lv2_plugin.cc | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3