summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-03-16 04:35:03 +0000
committerDavid Robillard <d@drobilla.net>2011-03-16 04:35:03 +0000
commitb3786217c82ff2f12a73595ecc375916d6e9d169 (patch)
treeef9c0511b1373440c7f5d0edf66c316ce359d344
parent495a596f673dec551783b166150d2fa3772198bd (diff)
downloadingen-b3786217c82ff2f12a73595ecc375916d6e9d169.tar.gz
ingen-b3786217c82ff2f12a73595ecc375916d6e9d169.tar.bz2
ingen-b3786217c82ff2f12a73595ecc375916d6e9d169.zip
Fix LV2 plugin UIs (broken in r3093).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3098 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/client/PluginUI.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/PluginUI.cpp b/src/client/PluginUI.cpp
index cf6f503c..d397f0d8 100644
--- a/src/client/PluginUI.cpp
+++ b/src/client/PluginUI.cpp
@@ -131,9 +131,8 @@ PluginUI::create(Ingen::Shared::World* world,
SLV2UI ui = slv2_plugin_get_default_ui(plugin, gtk_ui);
- slv2_value_free(gtk_ui);
-
if (!ui) {
+ slv2_value_free(gtk_ui);
return SharedPtr<PluginUI>();
}
@@ -148,6 +147,8 @@ PluginUI::create(Ingen::Shared::World* world,
ret.get(),
ret->_features->array());
+ slv2_value_free(gtk_ui);
+
if (instance) {
ret->_instance = instance;
} else {