From 18b54e6a8568756dbf35bd576d8b28b4b41d0e6d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 22 May 2015 00:24:37 -0400 Subject: [PATCH] Fix deleting and re-saving LV2 presets. --- libs/ardour/lv2_plugin.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc index d98f9a9ecc..729e891138 100644 --- a/libs/ardour/lv2_plugin.cc +++ b/libs/ardour/lv2_plugin.cc @@ -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. */