Fix deleting and re-saving LV2 presets.
authorDavid Robillard <d@drobilla.net>
Fri, 22 May 2015 04:24:37 +0000 (00:24 -0400)
committerDavid Robillard <d@drobilla.net>
Fri, 22 May 2015 04:24:37 +0000 (00:24 -0400)
libs/ardour/lv2_plugin.cc

index d98f9a9eccf961438d5aa22e002efbe899f24edb..729e891138d73980e8d3595240add0f037a71909 100644 (file)
@@ -1143,6 +1143,9 @@ LV2Plugin::do_remove_preset(string name)
                return;
        }
 
+       /* Unload preset from world. */
+       lilv_world_unload_resource(world, pset);
+
        /* Delete it from the file system.  This will remove the preset file and the entry
           from the manifest.  If this results in an empty manifest (i.e. the
           preset is the only thing in the bundle), then the bundle is removed. */