From cbb935c8d5df45c4cbcc95438253c047d74f461a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 21 Dec 2007 00:08:02 +0000 Subject: [PATCH] Fix crash when displaying LADSPA plugin UI. git-svn-id: svn://localhost/ardour2/trunk@2804 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/ladspa_pluginui.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/ladspa_pluginui.cc b/gtk2_ardour/ladspa_pluginui.cc index f4123c7d8c..b5d78387a3 100644 --- a/gtk2_ardour/ladspa_pluginui.cc +++ b/gtk2_ardour/ladspa_pluginui.cc @@ -360,7 +360,10 @@ LadspaPluginUI::print_parameter (char *buf, uint32_t len, uint32_t param) LadspaPluginUI::ControlUI* LadspaPluginUI::build_control_ui (guint32 port_index, boost::shared_ptr mcontrol) { - ControlUI* control_ui; + ControlUI* control_ui = NULL; + if (!mcontrol) + return control_ui; + Plugin::ParameterDescriptor desc; plugin->get_parameter_descriptor (port_index, desc);