summaryrefslogtreecommitdiff
path: root/libs/ardour/lv2_plugin.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-05-22 00:24:37 -0400
committerDavid Robillard <d@drobilla.net>2015-05-22 00:24:37 -0400
commit18b54e6a8568756dbf35bd576d8b28b4b41d0e6d (patch)
tree5127fa989324e127a67579da8d10eb1e680b14e6 /libs/ardour/lv2_plugin.cc
parentcb2186b118897101b37d2d753be1b3aacb75e4a0 (diff)
Fix deleting and re-saving LV2 presets.
Diffstat (limited to 'libs/ardour/lv2_plugin.cc')
-rw-r--r--libs/ardour/lv2_plugin.cc3
1 files changed, 3 insertions, 0 deletions
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. */