Another attempt fixing crash at exit on windows.
authorRobin Gareus <robin@gareus.org>
Fri, 29 Jan 2016 17:22:57 +0000 (18:22 +0100)
committerRobin Gareus <robin@gareus.org>
Fri, 29 Jan 2016 17:22:57 +0000 (18:22 +0100)
libs/ardour/lv2_plugin.cc

index ef247109bd98f3462ab9bd805fa2b4d1ac1b2ef0..507e546adc7239362c84712e4ae80afbf0c8b5c4 100644 (file)
@@ -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