summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-03-24 20:10:11 -0400
committerDavid Robillard <d@drobilla.net>2013-03-24 20:10:11 -0400
commitfe29965980a9d84e4991f8eb3083084ca108ac08 (patch)
tree9028695cba64a822751396dcac2d36750a7f1917 /libs
parent024dfe47f56cb8a35af32e63c269910724c88e92 (diff)
Fix memory leak.
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/lv2_plugin.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc
index c6c6ead47a..29af02c696 100644
--- a/libs/ardour/lv2_plugin.cc
+++ b/libs/ardour/lv2_plugin.cc
@@ -990,10 +990,10 @@ LV2Plugin::load_preset(PresetRecord r)
if (state) {
lilv_state_restore(state, _impl->instance, set_port_value, this, 0, NULL);
lilv_state_free(state);
- return true;
- } else {
- return false;
}
+
+ lilv_node_free(pset);
+ return state;
}
const void*