summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 {