From 04caff02a162a8651a4ac3156b26a250b1ffeb50 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 12 Jun 2016 13:07:18 -0400 Subject: [PATCH] fix crash when removing a track in the presence of VCAs --- gtk2_ardour/control_slave_ui.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/control_slave_ui.cc b/gtk2_ardour/control_slave_ui.cc index 3fd752c72f..dcb62971cf 100644 --- a/gtk2_ardour/control_slave_ui.cc +++ b/gtk2_ardour/control_slave_ui.cc @@ -94,10 +94,12 @@ ControlSlaveUI::update_vca_display () Gtkmm2ext::container_clear (*this); master_connections.drop_connections (); - for (VCAList::iterator v = vcas.begin(); v != vcas.end(); ++v) { - if (stripable->gain_control()->slaved_to ((*v)->gain_control())) { - add_vca_button (*v); - any = true; + if (stripable) { + for (VCAList::iterator v = vcas.begin(); v != vcas.end(); ++v) { + if (stripable->gain_control()->slaved_to ((*v)->gain_control())) { + add_vca_button (*v); + any = true; + } } } -- 2.30.2