fix crash when removing a track in the presence of VCAs
authorPaul Davis <paul@linuxaudiosystems.com>
Sun, 12 Jun 2016 17:07:18 +0000 (13:07 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Sun, 12 Jun 2016 17:07:24 +0000 (13:07 -0400)
gtk2_ardour/control_slave_ui.cc

index 3fd752c72f0d8be19c364b905c8845b5a7c7566d..dcb62971cf3951b9b3ee9faef976e2500bed0e32 100644 (file)
@@ -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;
+                       }
                }
        }