diff options
author | Carl Hetherington <carl@carlh.net> | 2009-12-28 02:23:20 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-12-28 02:23:20 +0000 |
commit | 8e65788ef0cb56747f4e1e08c9c64a137f922026 (patch) | |
tree | 9a87e005a2d1c2e3737bbe1aaefa1a5203caee80 /libs | |
parent | b37dbcea7503b3b2fea193a1cfb964f89d803921 (diff) |
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
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/session.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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<boost::shared_ptr<Region> >::iterator i = r.begin(); i != r.end(); ++i) { + remove_region (*i); + } + destroy_regions (r); save_state (_current_snapshot_name); |