Fix crashes when closing LV2 plugin UIs.
git-svn-id: svn://localhost/ardour2/branches/3.0@12085 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
72678cc230
commit
bc34fd18c2
@ -272,7 +272,7 @@ LV2PluginUI::lv2ui_instantiate(const std::string& title)
|
||||
pack_start(*_ardour_buttons_box, false, false);
|
||||
|
||||
GtkWidget* c_widget = (GtkWidget*)GET_WIDGET(_inst);
|
||||
_gui_widget = Glib::wrap(c_widget);
|
||||
_gui_widget = Gtk::manage(Glib::wrap(c_widget));
|
||||
_gui_widget->show_all();
|
||||
pack_start(*_gui_widget, true, true);
|
||||
} else {
|
||||
@ -313,11 +313,6 @@ LV2PluginUI::lv2ui_free()
|
||||
_gui_widget = NULL;
|
||||
}
|
||||
|
||||
if (_ardour_buttons_box) {
|
||||
remove (*_ardour_buttons_box);
|
||||
_ardour_buttons_box = NULL;
|
||||
}
|
||||
|
||||
if (_inst) {
|
||||
suil_instance_free((SuilInstance*)_inst);
|
||||
_inst = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user