fix a crash when deleting a MIDI region with CC automation (see recipe below)
authornick_m <mainsbridge@gmail.com>
Wed, 23 Nov 2016 04:29:57 +0000 (15:29 +1100)
committernick_m <mainsbridge@gmail.com>
Wed, 23 Nov 2016 04:29:57 +0000 (15:29 +1100)
- object mode: select a MIDI region that has CC automation.
  Move the mouse over a CC automation event,
  then press backspace to delete the selected region

- the recipe is mentioned in #7049, but seems unrelated.

gtk2_ardour/automation_region_view.cc

index 8466292975eff616606aef2b384547401cc12652..8354e16b10425683b232c4f9fbb653dda85c3e6a 100644 (file)
@@ -68,6 +68,7 @@ AutomationRegionView::AutomationRegionView (ArdourCanvas::Container*
 
 AutomationRegionView::~AutomationRegionView ()
 {
+       in_destructor = true;
        RegionViewGoingAway (this); /* EMIT_SIGNAL */
 }