diff options
Diffstat (limited to 'src/client/PluginUI.cpp')
-rw-r--r-- | src/client/PluginUI.cpp | 5 |
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 { |