From 8e65788ef0cb56747f4e1e08c9c64a137f922026 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 28 Dec 2009 02:23:20 +0000 Subject: [PATCH] Remove as well as destroying last capture regions. Closes #2971. git-svn-id: svn://localhost/ardour2/branches/3.0@6405 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/session.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index d512d49b39..b3c0ed29fb 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -2949,6 +2949,10 @@ Session::remove_last_capture () } } + for (list >::iterator i = r.begin(); i != r.end(); ++i) { + remove_region (*i); + } + destroy_regions (r); save_state (_current_snapshot_name);