From 0b07e1b26a6963b182b4fe6f8961dc04ca6c84d0 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 12 Dec 2022 16:21:27 -0700 Subject: [PATCH] avoid crash during multi-region bounce --- gtk2_ardour/editor_export_audio.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/editor_export_audio.cc b/gtk2_ardour/editor_export_audio.cc index 407e024292..54356a94b6 100644 --- a/gtk2_ardour/editor_export_audio.cc +++ b/gtk2_ardour/editor_export_audio.cc @@ -427,14 +427,15 @@ Editor::bounce_region_selection (bool with_processing) InterThreadInfo itt; - boost::shared_ptr r; std::string name; if (multiple_selected) { - name = string_compose ("%1%2", bounce_name, r->name ()); + name = string_compose ("%1%2", bounce_name, region->name ()); } else { name = bounce_name; } + boost::shared_ptr r; + if (with_processing) { r = track->bounce_range (region->position_sample(), region->position_sample() + region->length_samples(), itt, track->main_outs(), false, name); } else {