mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +01:00
Fix use-after free, and double-packing of proc-box (amend 844d45896)
This commit is contained in:
parent
192c7a2f9a
commit
648e8f9f00
1 changed files with 2 additions and 0 deletions
|
|
@ -81,6 +81,7 @@ RoutePropertiesBox::session_going_away ()
|
|||
ENSURE_GUI_THREAD (*this, &RoutePropertiesBox::session_going_away);
|
||||
SessionHandlePtr::session_going_away ();
|
||||
|
||||
_insert_frame.remove ();
|
||||
drop_plugin_uis ();
|
||||
drop_route ();
|
||||
delete _insert_box;
|
||||
|
|
@ -98,6 +99,7 @@ RoutePropertiesBox::set_session (ARDOUR::Session* s) {
|
|||
_insert_box->show_all ();
|
||||
|
||||
float ui_scale = std::max<float> (1.f, UIConfiguration::instance().get_ui_scale());
|
||||
_insert_frame.remove ();
|
||||
_insert_frame.add (*_insert_box);
|
||||
_insert_frame.set_padding (4);
|
||||
_insert_frame.set_size_request (144 * ui_scale, 236 * ui_scale);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue